diff mbox

[3/6] powerpc: Add more trap names to xmon

Message ID 1376544139-26783-3-git-send-email-michael@ellerman.id.au (mailing list archive)
State Accepted, archived
Commit 660e034ce167b0954b83fd024c8be02c2911dbc9
Headers show

Commit Message

Michael Ellerman Aug. 15, 2013, 5:22 a.m. UTC
We haven't updated these for a while it seems, it's nice to have in the
oops output.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
---
 arch/powerpc/xmon/xmon.c | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Paul Mackerras Aug. 20, 2013, 10:52 a.m. UTC | #1
On Thu, Aug 15, 2013 at 03:22:16PM +1000, Michael Ellerman wrote:
> We haven't updated these for a while it seems, it's nice to have in the
> oops output.

I think you mean the xmon exception summary output, not the oops output...

Paul.
diff mbox

Patch

diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index 96bf5bd..9f3655b 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -1256,11 +1256,18 @@  const char *getvecname(unsigned long vec)
 	case 0x700:	ret = "(Program Check)"; break;
 	case 0x800:	ret = "(FPU Unavailable)"; break;
 	case 0x900:	ret = "(Decrementer)"; break;
+	case 0x980:	ret = "(Hypervisor Decrementer)"; break;
+	case 0xa00:	ret = "(Doorbell)"; break;
 	case 0xc00:	ret = "(System Call)"; break;
 	case 0xd00:	ret = "(Single Step)"; break;
+	case 0xe40:	ret = "(Emulation Assist)"; break;
+	case 0xe60:	ret = "(HMI)"; break;
+	case 0xe80:	ret = "(Hypervisor Doorbell)"; break;
 	case 0xf00:	ret = "(Performance Monitor)"; break;
 	case 0xf20:	ret = "(Altivec Unavailable)"; break;
 	case 0x1300:	ret = "(Instruction Breakpoint)"; break;
+	case 0x1500:	ret = "(Denormalisation)"; break;
+	case 0x1700:	ret = "(Altivec Assist)"; break;
 	default: ret = "";
 	}
 	return ret;