From 8b810a009f8d29ba61a3c377fdeac06a3bbb151d Mon Sep 17 00:00:00 2001 From: NatrixAeria Date: Thu, 15 Apr 2021 00:05:07 +0200 Subject: Fix most warnings and tidy up --- kernel/src/interrupts/exception_handlers.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kernel/src/interrupts/exception_handlers.rs') 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) { -- cgit v1.2.3-70-g09d2