forked from AbleOS/ableos
18 lines
391 B
Rust
18 lines
391 B
Rust
#![allow(clippy::print_literal)]
|
|
use crate::logger;
|
|
|
|
use super::{gdt, interrupts};
|
|
|
|
pub fn init() {
|
|
let result = logger::init();
|
|
match result {
|
|
Ok(_) => {}
|
|
Err(err) => error!("{}", err),
|
|
}
|
|
gdt::init();
|
|
interrupts::init_idt();
|
|
unsafe { interrupts::PICS.lock().initialize() };
|
|
x86_64::instructions::interrupts::enable();
|
|
info!("Initialized");
|
|
}
|