mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
Kernel: Set up and activate the MMU in the aarch64 perkernel
This commit is contained in:
parent
c2d7e200eb
commit
271b9b8da3
Notes:
sideshowbarker
2024-07-18 00:33:02 +09:00
Author: https://github.com/jamesmintram
Commit: 271b9b8da3
Pull-request: https://github.com/SerenityOS/serenity/pull/10514
Reviewed-by: https://github.com/mundak ✅
Reviewed-by: https://github.com/nico
5 changed files with 191 additions and 0 deletions
|
@ -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 (;;) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue