diff options
Diffstat (limited to 'kernel/src/interrupts/exceptions.rs')
-rw-r--r-- | kernel/src/interrupts/exceptions.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/src/interrupts/exceptions.rs b/kernel/src/interrupts/exceptions.rs new file mode 100644 index 0000000..5ec7588 --- /dev/null +++ b/kernel/src/interrupts/exceptions.rs @@ -0,0 +1,7 @@ +use crate::io::vga_text::OStream; +use x86_64::structures::idt::InterruptStackFrame; + +pub extern "x86-interrupt" fn breakpoint_handler(stack_frame: &mut InterruptStackFrame) { + let mut stdout = OStream::new(); + stdout.print(b"EXCEPTION: BREAKPOINT\n"); +} |