SetKernelStack should have no_stack_protector attribute

This commit is contained in:
Alex 2022-11-06 05:04:57 +02:00
parent b82560e5d4
commit 971f4b2b27
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -148,7 +148,7 @@ namespace GlobalDescriptorTable
trace("Global Descriptor Table initialized"); trace("Global Descriptor Table initialized");
} }
void SetKernelStack(void *Stack) __attribute__((no_stack_protector)) void SetKernelStack(void *Stack)
{ {
tss[GetCurrentCPU()->ID].StackPointer[0] = (uint64_t)Stack; tss[GetCurrentCPU()->ID].StackPointer[0] = (uint64_t)Stack;
} }