powerpc: Print trap frame address for fatal traps

MFC after:	1 week
This commit is contained in:
Justin Hibbits 2019-03-09 03:18:37 +00:00
parent 6d8b651c1e
commit 66306e6acd

View File

@ -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",