diff options
author | Dennis Kobert <dennis@kobert.dev> | 2019-11-15 07:32:54 +0100 |
---|---|---|
committer | Dennis Kobert <dennis@kobert.dev> | 2019-11-15 07:32:54 +0100 |
commit | 67df24a850b6dc070382289d09c70e369726cac4 (patch) | |
tree | 1221daf02158c4654bf5c5382bd6e888da0855d0 /kernel/tests | |
parent | 307571308b115eb737281711c780fa4cd1ed837f (diff) |
Add protection fault handler
Diffstat (limited to 'kernel/tests')
-rw-r--r-- | kernel/tests/int3.rs | 2 | ||||
-rw-r--r-- | kernel/tests/stack_overflow.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/tests/int3.rs b/kernel/tests/int3.rs index f4e2116..f5b5470 100644 --- a/kernel/tests/int3.rs +++ b/kernel/tests/int3.rs @@ -13,7 +13,7 @@ use kernel::io::qemu; extern "C" fn _start() -> ! { kernel::init(); unsafe { - exceptions::expect_fault(interrupts::Interrupts::BREAKPOINT); + exceptions::expect_fault(interrupts::Interrupts::Breakpoint); } x86_64::instructions::interrupts::int3(); panic!("BREAKPOINT not caught"); diff --git a/kernel/tests/stack_overflow.rs b/kernel/tests/stack_overflow.rs index eedb3b5..9e75f59 100644 --- a/kernel/tests/stack_overflow.rs +++ b/kernel/tests/stack_overflow.rs @@ -14,7 +14,7 @@ use kernel::io::qemu; extern "C" fn _start() -> ! { kernel::init(); unsafe { - exceptions::expect_fault(interrupts::Interrupts::NOT_PRESENT); + exceptions::expect_fault(interrupts::Interrupts::PageFault); } _loop(0); panic!("PAGE_FAULT not caught"); |