Kernel: Set up and activate the MMU in the aarch64 perkernel

This commit is contained in:
James Mintram 2021-11-24 20:09:43 +00:00 committed by Brian Gianforcaro
commit 271b9b8da3
Notes: sideshowbarker 2024-07-18 00:33:02 +09:00
5 changed files with 191 additions and 0 deletions

View file

@ -43,11 +43,16 @@ extern "C" [[noreturn]] void init()
uart.print_str("Drop CPU to EL1\r\n");
Prekernel::drop_to_exception_level_1();
uart.print_str("Initialize MMU\r\n");
Prekernel::init_prekernel_page_tables();
auto& framebuffer = Prekernel::Framebuffer::the();
if (framebuffer.initialized()) {
draw_logo();
}
uart.print_str("Enter loop\r\n");
auto& timer = Prekernel::Timer::the();
u64 start_musec = 0;
for (;;) {