diff options
author | David S. Miller <davem@davemloft.net> | 2005-08-29 15:44:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-08-29 15:44:57 -0400 |
commit | bde4e4ee9f90142d550e2684dec2c8df302f5f8e (patch) | |
tree | 9ea03bd0e3cfe7ed1de41171dd5a906779b02e72 /arch/sparc64/kernel/entry.S | |
parent | 5ea68e02766c52c153c62fc423cda659a80e45fa (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/entry.S')
-rw-r--r-- | arch/sparc64/kernel/entry.S | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/entry.S b/arch/sparc64/kernel/entry.S index 6d0476ff4ff8..214cd0ebe832 100644 --- a/arch/sparc64/kernel/entry.S +++ b/arch/sparc64/kernel/entry.S | |||
@@ -701,8 +701,24 @@ __do_data_access_exception_tl1: | |||
701 | ldxa [%g5] ASI_DMMU, %g5 ! Get SFAR | 701 | ldxa [%g5] ASI_DMMU, %g5 ! Get SFAR |
702 | stxa %g0, [%g3] ASI_DMMU ! Clear SFSR.FaultValid bit | 702 | stxa %g0, [%g3] ASI_DMMU ! Clear SFSR.FaultValid bit |
703 | membar #Sync | 703 | membar #Sync |
704 | rdpr %tt, %g3 | ||
705 | cmp %g3, 0x80 ! first win spill/fill trap | ||
706 | blu,pn %xcc, 1f | ||
707 | cmp %g3, 0xff ! last win spill/fill trap | ||
708 | bgu,pn %xcc, 1f | ||
709 | nop | ||
704 | ba,pt %xcc, winfix_dax | 710 | ba,pt %xcc, winfix_dax |
705 | rdpr %tpc, %g3 | 711 | rdpr %tpc, %g3 |
712 | 1: sethi %hi(109f), %g7 | ||
713 | ba,pt %xcc, etraptl1 | ||
714 | 109: or %g7, %lo(109b), %g7 | ||
715 | mov %l4, %o1 | ||
716 | mov %l5, %o2 | ||
717 | call data_access_exception_tl1 | ||
718 | add %sp, PTREGS_OFF, %o0 | ||
719 | ba,pt %xcc, rtrap | ||
720 | clr %l6 | ||
721 | |||
706 | __do_data_access_exception: | 722 | __do_data_access_exception: |
707 | rdpr %pstate, %g4 | 723 | rdpr %pstate, %g4 |
708 | wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate | 724 | wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate |