]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
powerpc/xmon: Teach xmon oops about radix vectors
authorMichael Neuling <mikey@neuling.org>
Thu, 16 Mar 2017 03:04:40 +0000 (14:04 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 1 May 2017 08:52:58 +0000 (18:52 +1000)
Currently if we take an oops caused by an 0x380 or 0x480 exception, we get a
print which assumes SLB problems. With radix, these vectors have different
meanings.

This patch updates the oops message to reflect these different meanings.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/xmon/xmon.c

index da5619847517b9e40906612cb66e6fde885d6155..f11f65634aab443cd3a6054590075a39af16e885 100644 (file)
@@ -1369,9 +1369,19 @@ const char *getvecname(unsigned long vec)
        case 0x100:     ret = "(System Reset)"; break;
        case 0x200:     ret = "(Machine Check)"; break;
        case 0x300:     ret = "(Data Access)"; break;
-       case 0x380:     ret = "(Data SLB Access)"; break;
+       case 0x380:
+               if (radix_enabled())
+                       ret = "(Data Access Out of Range)";
+               else
+                       ret = "(Data SLB Access)";
+               break;
        case 0x400:     ret = "(Instruction Access)"; break;
-       case 0x480:     ret = "(Instruction SLB Access)"; break;
+       case 0x480:
+               if (radix_enabled())
+                       ret = "(Instruction Access Out of Range)";
+               else
+                       ret = "(Instruction SLB Access)";
+               break;
        case 0x500:     ret = "(Hardware Interrupt)"; break;
        case 0x600:     ret = "(Alignment)"; break;
        case 0x700:     ret = "(Program Check)"; break;