Fix "KPT = KernelPageTable;" in wrong place

This commit is contained in:
Alex 2022-12-21 20:58:37 +02:00
parent d7eb31f21d
commit 4febfad479
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -213,8 +213,8 @@ __no_instrument_function void InitializeMemoryManagement(BootInfo *Info)
tracepagetable(KernelPageTable);
debug("Userspace:");
tracepagetable(UserspaceKernelOnlyPageTable);
KPT = KernelPageTable;
#endif
KPT = KernelPageTable;
#if defined(__amd64__) || defined(__i386__)
asmv("mov %0, %%cr3" ::"r"(KPT));
#elif defined(__aarch64__)