first interrupts works

This commit is contained in:
Jack Halford 2018-03-20 13:27:18 +01:00
parent 098d222fc1
commit 30a8daf1a3
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,5 @@ pub fn init() {
extern "x86-interrupt" fn breakpoint_handler(
stack_frame: &mut ExceptionStackFrame)
{
println!("EXCEPTION: BREAKPOINT\n");
flush!();
loop{}
println!("EXCEPTION: BREAKPOINT\n{:#?}", stack_frame);
}

View file

@ -64,6 +64,8 @@ pub extern fn kmain(multiboot_info_addr: usize) -> ! {
x86::instructions::interrupts::int3();
flush!();
loop { keyboard::kbd_callback(); }
}