forked from AbleOS/ableos
12 lines
312 B
Rust
12 lines
312 B
Rust
|
#![allow(clippy::print_literal)]
|
||
|
use super::{gdt, interrupts};
|
||
|
use crate::{println, serial_println};
|
||
|
pub fn init() {
|
||
|
gdt::init();
|
||
|
interrupts::init_idt();
|
||
|
unsafe { interrupts::PICS.lock().initialize() };
|
||
|
x86_64::instructions::interrupts::enable();
|
||
|
println!("Initialized");
|
||
|
serial_println!("Initialized");
|
||
|
}
|