Add GetKernelStack

This commit is contained in:
Alex
2023-03-23 23:21:50 +02:00
parent 86c290f830
commit 6c1e2e50a4
2 changed files with 3 additions and 0 deletions

View File

@ -159,4 +159,6 @@ namespace GlobalDescriptorTable
asmv("mov %%rsp, %0"
: "=r"(tss[CPUID].StackPointer[0]));
}
void *GetKernelStack() { return (void *)tss[GetCurrentCPU()->ID].StackPointer[0]; }
}