Thread (4 messages) 4 messages, 3 authors, 2018-09-05

Re: [PATCH] powerpc64s: Print exception vector name alongside the trap number

From: Naveen N. Rao <hidden>
Date: 2018-04-19 06:56:21

Benjamin Herrenschmidt wrote:
On Wed, 2018-04-18 at 14:32 +0530, Naveen N. Rao wrote:
quoted
=20
+#ifdef CONFIG_PPC_BOOK3S_64
+static char *print_trap(unsigned long trapno)
+{
+	trapno &=3D 0xff0;
+	switch (trapno) {
+		case 0x100:	return "SRESET";
+		case 0x200:	return "MCE";
+		case 0x300:	return "DSI";
+		case 0x380:	return "DSISLB";
+		case 0x400:	return "ISI";
+		case 0x480:	return "ISISLB";
=20
380 and 480 should probably be "DSEG" and "ISEG" ... they may or may
not involve the SLB.
Ok, thanks for the review.

- Naveen

=
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help