aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/traps.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2005-08-29 15:44:57 -0400
committerDavid S. Miller <davem@davemloft.net>2005-08-29 15:44:57 -0400
commitbde4e4ee9f90142d550e2684dec2c8df302f5f8e (patch)
tree9ea03bd0e3cfe7ed1de41171dd5a906779b02e72 /arch/sparc64/kernel/traps.c
parent5ea68e02766c52c153c62fc423cda659a80e45fa (diff)
[SPARC64]: Do not call winfix_dax blindly
Verify we really are taking a data access exception trap, at TL1, from one of the window spill/fill handlers. Else call a new function, data_access_exception_tl1, to log the error. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/traps.c')
-rw-r--r--arch/sparc64/kernel/traps.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/traps.c b/arch/sparc64/kernel/traps.c
index 0c9e54b2f0c8..210b3e321c29 100644
--- a/arch/sparc64/kernel/traps.c
+++ b/arch/sparc64/kernel/traps.c
@@ -220,6 +220,17 @@ void data_access_exception(struct pt_regs *regs,
220 force_sig_info(SIGSEGV, &info, current); 220 force_sig_info(SIGSEGV, &info, current);
221} 221}
222 222
223void data_access_exception_tl1(struct pt_regs *regs,
224 unsigned long sfsr, unsigned long sfar)
225{
226 if (notify_die(DIE_TRAP_TL1, "data access exception tl1", regs,
227 0, 0x30, SIGTRAP) == NOTIFY_STOP)
228 return;
229
230 dump_tl1_traplog((struct tl1_traplog *)(regs + 1));
231 data_access_exception(regs, sfsr, sfar);
232}
233
223#ifdef CONFIG_PCI 234#ifdef CONFIG_PCI
224/* This is really pathetic... */ 235/* This is really pathetic... */
225extern volatile int pci_poke_in_progress; 236extern volatile int pci_poke_in_progress;