From d0f4e56dea7fa165188e7ad9d179493b9eeb10f3 Mon Sep 17 00:00:00 2001 From: jhibbits Date: Sat, 9 Mar 2019 03:18:37 +0000 Subject: [PATCH] powerpc: Print trap frame address for fatal traps MFC after: 1 week --- sys/powerpc/powerpc/trap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/powerpc/powerpc/trap.c b/sys/powerpc/powerpc/trap.c index a500cf3a2bab..111e69a7b32e 100644 --- a/sys/powerpc/powerpc/trap.c +++ b/sys/powerpc/powerpc/trap.c @@ -546,6 +546,7 @@ printtrap(u_int vector, struct trapframe *frame, int isfatal, int user) printf(" current msr = 0x%" PRIxPTR "\n", mfmsr()); printf(" lr = 0x%" PRIxPTR " (0x%" PRIxPTR ")\n", frame->lr, frame->lr - (register_t)(__startkernel - KERNBASE)); + printf(" frame = %p\n", frame); printf(" curthread = %p\n", curthread); if (curthread != NULL) printf(" pid = %d, comm = %s\n",