summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/src/interrupts/exceptions.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/kernel/src/interrupts/exceptions.rs b/kernel/src/interrupts/exceptions.rs
index 057adbc..1e7680a 100644
--- a/kernel/src/interrupts/exceptions.rs
+++ b/kernel/src/interrupts/exceptions.rs
@@ -2,12 +2,13 @@ use x86_64::structures::idt::{InterruptStackFrame, PageFaultErrorCode};
macro_rules! exception_default {
($stack_frame: expr) => {
- format_args!("instruction addr: 0x{:08x}\nstack addr: 0x{:08x}\nflags: 0x{:x}",
- $stack_frame.instruction_pointer.as_u64(),
- $stack_frame.cpu_flags,
- $stack_frame.stack_pointer.as_u64()
- )
- }
+ format_args!(
+ "instruction addr: 0x{:08x}\nstack addr: 0x{:08x}\nflags: 0x{:x}",
+ $stack_frame.instruction_pointer.as_u64(),
+ $stack_frame.stack_pointer.as_u64(),
+ $stack_frame.cpu_flags,
+ )
+ };
}
pub extern "x86-interrupt" fn breakpoint_handler(stack_frame: &mut InterruptStackFrame) {