From cbb1bccdeb98b8bdd80f5334f03bf45961d2a0f8 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 13 Dec 2023 11:38:51 -0500 Subject: 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 --- sys/arch/amd64/trap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/arch') 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); } -- cgit v1.2.3