mirror of
https://github.com/iceHtwoO/novaOS.git
synced 2026-04-17 04:32:27 +00:00
wip
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user