summaryrefslogtreecommitdiff
path: root/kernel/src/interrupts/exception_handlers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/src/interrupts/exception_handlers.rs')
-rw-r--r--kernel/src/interrupts/exception_handlers.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/src/interrupts/exception_handlers.rs b/kernel/src/interrupts/exception_handlers.rs
index c689501..ce8f6c0 100644
--- a/kernel/src/interrupts/exception_handlers.rs
+++ b/kernel/src/interrupts/exception_handlers.rs
@@ -13,16 +13,16 @@ macro_rules! exception_default {
};
}
-static mut expected_fault: InterruptType = InterruptType::None;
+static mut EXPECTED_FAULT: InterruptType = InterruptType::None;
pub unsafe fn expect_fault(int: InterruptType) {
- if expected_fault == InterruptType::None {
- expected_fault = int;
+ if EXPECTED_FAULT == InterruptType::None {
+ EXPECTED_FAULT = int;
}
}
fn get_expected_fault() -> InterruptType {
- unsafe { expected_fault }
+ unsafe { EXPECTED_FAULT }
}
pub extern "x86-interrupt" fn breakpoint_handler(stack_frame: &mut InterruptStackFrame) {