first interrupts works
This commit is contained in:
parent
098d222fc1
commit
30a8daf1a3
2 changed files with 3 additions and 3 deletions
|
|
@ -15,7 +15,5 @@ pub fn init() {
|
||||||
extern "x86-interrupt" fn breakpoint_handler(
|
extern "x86-interrupt" fn breakpoint_handler(
|
||||||
stack_frame: &mut ExceptionStackFrame)
|
stack_frame: &mut ExceptionStackFrame)
|
||||||
{
|
{
|
||||||
println!("EXCEPTION: BREAKPOINT\n");
|
println!("EXCEPTION: BREAKPOINT\n{:#?}", stack_frame);
|
||||||
flush!();
|
|
||||||
loop{}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,8 @@ pub extern fn kmain(multiboot_info_addr: usize) -> ! {
|
||||||
|
|
||||||
x86::instructions::interrupts::int3();
|
x86::instructions::interrupts::int3();
|
||||||
|
|
||||||
|
flush!();
|
||||||
|
|
||||||
loop { keyboard::kbd_callback(); }
|
loop { keyboard::kbd_callback(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue