mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 23:44:31 +00:00
added no_stack_protector attribute to functions
This commit is contained in:
parent
5f03d287d3
commit
d35b4de246
@ -26,7 +26,7 @@ namespace GlobalDescriptorTable
|
||||
0,
|
||||
};
|
||||
|
||||
void Init(int Core)
|
||||
__attribute__((no_stack_protector)) void Init(int Core)
|
||||
{
|
||||
CPU::x64::lgdt(&gdt);
|
||||
|
||||
|
@ -53,13 +53,13 @@ void UserModeExceptionHandler(CPU::x64::TrapFrame *Frame);
|
||||
|
||||
namespace CrashHandler
|
||||
{
|
||||
void printfWrapper(char c, void *unused)
|
||||
__attribute__((no_stack_protector)) void printfWrapper(char c, void *unused)
|
||||
{
|
||||
Display->Print(c, 255, true);
|
||||
UNUSED(unused);
|
||||
}
|
||||
|
||||
void EHPrint(const char *Format, ...)
|
||||
__attribute__((no_stack_protector)) void EHPrint(const char *Format, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, Format);
|
||||
@ -67,7 +67,7 @@ namespace CrashHandler
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
void Handle(void *Data)
|
||||
__attribute__((no_stack_protector)) void Handle(void *Data)
|
||||
{
|
||||
CPU::Interrupts(CPU::Disable);
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include "../crashhandler.hpp"
|
||||
#include "../kernel.h"
|
||||
|
||||
extern "C" void ExceptionHandler(void *Data) { CrashHandler::Handle(Data); }
|
||||
extern "C" __attribute__((no_stack_protector)) void ExceptionHandler(void *Data) { CrashHandler::Handle(Data); }
|
||||
|
||||
namespace Interrupts
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user