mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 19:05:08 +00:00
Prekernel: Make sure to reload CR3 after modifying the page tables
This commit is contained in:
parent
05fc75f994
commit
4fdee56ba3
1 changed files with 2 additions and 0 deletions
|
@ -179,6 +179,8 @@ extern "C" [[noreturn]] void init()
|
|||
for (FlatPtr vaddr = (FlatPtr)end_of_prekernel_image; vaddr < MAX_KERNEL_SIZE; vaddr += PAGE_SIZE)
|
||||
boot_pd0_pts[vaddr >> 12] = 0;
|
||||
|
||||
reload_cr3();
|
||||
|
||||
void (*entry)(BootInfo const&) = (void (*)(BootInfo const&))kernel_elf_header.e_entry;
|
||||
entry(*adjust_by_load_base(&info));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue