Message ID | 20230608075826.86217-2-npiggin@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | powerpc: updates, P10, PNV support | expand |
On 08/06/2023 09.58, Nicholas Piggin wrote: > Signed-off-by: Nicholas Piggin <npiggin@gmail.com> > --- > Since v3: > - New patch > > lib/powerpc/processor.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/powerpc/processor.c b/lib/powerpc/processor.c > index ec85b9d8..05b4b04f 100644 > --- a/lib/powerpc/processor.c > +++ b/lib/powerpc/processor.c > @@ -38,7 +38,7 @@ void do_handle_exception(struct pt_regs *regs) > return; > } > > - printf("unhandled cpu exception %#lx\n", regs->trap); > + printf("unhandled cpu exception %#lx at NIA:0x%016lx MSR:0x%016lx\n", regs->trap, regs->nip, regs->msr); <bikeshedding> Why NIA and not NIP ? </bikeshedding> Thomas
diff --git a/lib/powerpc/processor.c b/lib/powerpc/processor.c index ec85b9d8..05b4b04f 100644 --- a/lib/powerpc/processor.c +++ b/lib/powerpc/processor.c @@ -38,7 +38,7 @@ void do_handle_exception(struct pt_regs *regs) return; } - printf("unhandled cpu exception %#lx\n", regs->trap); + printf("unhandled cpu exception %#lx at NIA:0x%016lx MSR:0x%016lx\n", regs->trap, regs->nip, regs->msr); abort(); }
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> --- Since v3: - New patch lib/powerpc/processor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)