2021-11-16 00:09:27 -06:00
|
|
|
#![allow(clippy::print_literal)]
|
|
|
|
use super::{gdt, interrupts};
|
|
|
|
use crate::{println, serial_println};
|
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");
|
|
|
|
serial_println!("Initialized");
|
2021-11-16 00:09:27 -06:00
|
|
|
}
|