2021-11-16 00:09:27 -06:00
|
|
|
#![allow(clippy::print_literal)]
|
2021-12-24 04:05:23 -06:00
|
|
|
use {
|
|
|
|
super::{gdt, interrupts},
|
2021-12-24 07:03:15 -06:00
|
|
|
crate::{info, println},
|
2021-12-24 04:05:23 -06:00
|
|
|
};
|
2021-12-24 03:30:27 -06:00
|
|
|
|
2021-11-16 00:09:27 -06:00
|
|
|
pub fn init() {
|
2021-11-28 14:50:14 -06:00
|
|
|
gdt::init();
|
|
|
|
interrupts::init_idt();
|
|
|
|
unsafe { interrupts::PICS.lock().initialize() };
|
|
|
|
x86_64::instructions::interrupts::enable();
|
|
|
|
println!("Initialized");
|
2021-12-24 04:05:23 -06:00
|
|
|
info!("Initialized");
|
2021-11-16 00:09:27 -06:00
|
|
|
}
|