This commit is contained in:
2026-03-20 19:19:16 +01:00
parent 778b3ed80c
commit aed9c39283
8 changed files with 244 additions and 144 deletions

View File

@@ -78,8 +78,14 @@ pub fn get_current_el() -> u64 {
el >> 2
}
static mut KERNEL_INITIALIZED: bool = false;
pub fn initialize_kernel() {
if unsafe { KERNEL_INITIALIZED } {
return;
}
unsafe { init_kernel_heap() };
logger::set_logger(Box::new(DefaultLogger));
initialize_interrupt_handler();
unsafe { KERNEL_INITIALIZED = true };
}