summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kobert <dennis@kobert.dev>2019-11-09 03:18:39 +0100
committerDennis Kobert <dennis@kobert.dev>2019-11-09 03:18:39 +0100
commita68a9a11c91c3aca4d6f2e8a32df673ca39ec34d (patch)
tree3d73e25121f61da3022b6cc8ab52a8c94287799d
parent3c2d0f630082c81e7d79e792310ae70629cea052 (diff)
Fix swaped flag and stack arguments
-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) {