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

14 lines
280 B
Rust
Raw Normal View History

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-28 02:56:29 -06:00
crate::info,
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();
2021-12-24 04:05:23 -06:00
info!("Initialized");
2021-11-16 00:09:27 -06:00
}