Move PIC initialization and interrupt::enable to blog_os::init

This commit is contained in:
Philipp Oppermann
2019-04-25 18:38:16 +02:00
parent 3e6f242b52
commit acfdf929ad
2 changed files with 2 additions and 4 deletions

View File

@@ -9,13 +9,9 @@ use core::panic::PanicInfo;
#[no_mangle]
pub extern "C" fn _start() -> ! {
use blog_os::interrupts::PICS;
println!("Hello World{}", "!");
blog_os::init();
unsafe { PICS.lock().initialize() };
x86_64::instructions::interrupts::enable();
#[cfg(test)]
test_main();