Re: [PATCH] powerpc64s: Print exception vector name alongside the trap number
From: Naveen N. Rao <hidden>
Date: 2018-04-19 06:56:21
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 =