1
0
Fork 0
forked from AbleOS/ableos
ableOS_v1Change/ableos/src/arch/x86_64/init.rs

12 lines
330 B
Rust
Raw Normal View History

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