Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General improvements and cleanup to page tables handling #309

Merged
merged 11 commits into from
Oct 27, 2023
5 changes: 3 additions & 2 deletions common/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,16 @@ void __noreturn __text_init kernel_start(uint32_t multiboot_magic, unsigned long
/* Setup final pagetables */
init_pagetables();

map_bios_area();

write_cr3(cr3.paddr);
boot_flags.virt = true;

WRITE_SP(get_free_pages_top(PAGE_ORDER_2M, GFP_KERNEL_MAP));

if (opt_debug)
dump_pagetables(cr3);

map_bios_area();

minipli-oss marked this conversation as resolved.
Show resolved Hide resolved
if (setup_framebuffer())
display_banner();
else
Expand Down