diff options
author | Ian Moffett <ian@osmora.org> | 2023-12-13 11:38:51 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2023-12-13 11:38:51 -0500 |
commit | cbb1bccdeb98b8bdd80f5334f03bf45961d2a0f8 (patch) | |
tree | 9ff06ce0872e0ed96949b62fa7f5a1a352f87381 | |
parent | 9659e5fe4195a31ef9d5a84a0d6ebaa4ddc3fd93 (diff) |
kernel/amd64: trap: Log instruction pointer
This commit adds some logic to trap_handler() which makes it show the
instruction pointer from the trapframe.
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | sys/arch/amd64/trap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arch/amd64/trap.c b/sys/arch/amd64/trap.c index d215127..642c061 100644 --- a/sys/arch/amd64/trap.c +++ b/sys/arch/amd64/trap.c @@ -93,5 +93,5 @@ trap_handler(struct trapframe *tf) panic("Caught NMI; bailing out\n"); } - panic("Caught pre-sched exception\n"); + panic("Caught pre-sched exception @0x%x\n", tf->rip); } |