Re: [PATCH 3/4] powerpc: Rename and flesh out the facility unavailable exception handler
From: Michael Ellerman <hidden>
Date: 2013-06-27 14:16:31
From: Michael Ellerman <hidden>
Date: 2013-06-27 14:16:31
On Thu, Jun 27, 2013 at 02:05:39PM +1000, Stephen Rothwell wrote:
Hi Michael, On Tue, 25 Jun 2013 17:47:56 +1000 Michael Ellerman [off-list ref] wrote:quoted
-void tm_unavailable_exception(struct pt_regs *regs) +void facility_unavailable_exception(struct pt_regs *regs) { + static char *facility_strings[] = { + "FPU", + "VMX/VSX", + "DSCR", + "PMU SPRs", + "BHRB", + "TM", + "AT", + "EBB", + "TAR", + };Are the indexes into this array defined somewhere? If not, can we do that. Then, can we use explicit indexed initialisers for this array?
I'm not sure I follow. The mapping is defined by the definition of the "Interruption Cause" field of the FSCR, section 6.2.10 of PowerISA v2.07. cheers