summaryrefslogtreecommitdiff
path: root/kernel/tests
diff options
context:
space:
mode:
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");