Merge branch 'post-06-new' into post-07-new-rebased

This commit is contained in:
Philipp Oppermann
2019-04-26 15:24:28 +02:00
18 changed files with 289 additions and 286 deletions

View File

@@ -100,3 +100,14 @@ extern "x86-interrupt" fn keyboard_interrupt_handler(_stack_frame: &mut Interrup
.notify_end_of_interrupt(InterruptIndex::Keyboard.as_u8());
}
}
#[cfg(test)]
use crate::{serial_print, serial_println};
#[test_case]
fn test_breakpoint_exception() {
serial_print!("test_breakpoint_exception...");
// invoke a breakpoint exception
x86_64::instructions::interrupts::int3();
serial_println!("[ok]");
}