summaryrefslogtreecommitdiff
path: root/kernel/tests
diff options
context:
space:
mode:
authorDennis Kobert <dennis@kobert.dev>2019-11-15 20:21:25 +0100
committerDennis Kobert <dennis@kobert.dev>2019-11-15 20:21:25 +0100
commit6590a5acfee33bae3ca0431c8af09768248fe405 (patch)
tree8aeb110464ac6b6f715118ea1d14edf3d04b83a4 /kernel/tests
parentc6e0e13db0ba0442018645a1184be50e1ec968e0 (diff)
Rename interrupt and exception handlers
Diffstat (limited to 'kernel/tests')
-rw-r--r--kernel/tests/int3.rs4
-rw-r--r--kernel/tests/stack_overflow.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/kernel/tests/int3.rs b/kernel/tests/int3.rs
index f5b5470..e71ff68 100644
--- a/kernel/tests/int3.rs
+++ b/kernel/tests/int3.rs
@@ -6,14 +6,14 @@
use kernel;
use kernel::interrupts;
-use kernel::interrupts::exceptions;
+use kernel::interrupts::exception_handlers;
use kernel::io::qemu;
#[no_mangle]
extern "C" fn _start() -> ! {
kernel::init();
unsafe {
- exceptions::expect_fault(interrupts::Interrupts::Breakpoint);
+ exception_handlers::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 9e75f59..5ddc1ae 100644
--- a/kernel/tests/stack_overflow.rs
+++ b/kernel/tests/stack_overflow.rs
@@ -7,14 +7,14 @@
use core::fmt::Write;
use kernel;
use kernel::interrupts;
-use kernel::interrupts::exceptions;
+use kernel::interrupts::exception_handlers;
use kernel::io::qemu;
#[no_mangle]
extern "C" fn _start() -> ! {
kernel::init();
unsafe {
- exceptions::expect_fault(interrupts::Interrupts::PageFault);
+ exception_handlers::expect_fault(interrupts::Interrupts::PageFault);
}
_loop(0);
panic!("PAGE_FAULT not caught");