Add a new blog_os::init function instead of calling init_idt directly

This commit is contained in:
Philipp Oppermann
2019-04-25 18:08:48 +02:00
parent f301ae461a
commit df8335f8c7
2 changed files with 5 additions and 1 deletions

View File

@@ -11,6 +11,10 @@ pub mod interrupts;
pub mod serial;
pub mod vga_buffer;
pub fn init() {
interrupts::init_idt();
}
pub fn test_runner(tests: &[&dyn Fn()]) {
serial_println!("Running {} tests", tests.len());
for test in tests {

View File

@@ -11,7 +11,7 @@ use core::panic::PanicInfo;
pub extern "C" fn _start() -> ! {
println!("Hello World{}", "!");
blog_os::interrupts::init_idt();
blog_os::init();
// invoke a breakpoint exception
x86_64::instructions::interrupts::int3();