summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/winfixup.S
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-02-19 01:39:39 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 10:13:39 +0100
commit24c523ecc667dfeb28ef969cfabc531709bfffb8 (patch)
tree67760d3bb5c5c9f950e61b263fff836e677957ee /arch/sparc64/kernel/winfixup.S
parent[SPARC64]: Set %gl to 1 in kvmap_itlb_longpath on SUN4V. (diff)
downloadlinux-24c523ecc667dfeb28ef969cfabc531709bfffb8.tar.xz
linux-24c523ecc667dfeb28ef969cfabc531709bfffb8.zip
[SPARC64]: Fix unaligned access winfxup handling on SUN4V.
Another case where we have to force ourselves into global register level one. Also make sure the arguments passed to sun4v_do_mna() are correct. This area actually needs some more work, for example spill fixup is not necessarily going to do the right thing for this case. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/winfixup.S')
-rw-r--r--arch/sparc64/kernel/winfixup.S9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/sparc64/kernel/winfixup.S b/arch/sparc64/kernel/winfixup.S
index 161371370e9d..c4aa110a10e5 100644
--- a/arch/sparc64/kernel/winfixup.S
+++ b/arch/sparc64/kernel/winfixup.S
@@ -115,16 +115,17 @@ fill_fixup_mna:
ba,pt %xcc, etrap
rd %pc, %g7
sethi %hi(tlb_type), %g1
- mov %l4, %o1
lduw [%g1 + %lo(tlb_type)], %g1
- mov %l5, %o2
cmp %g1, 3
bne,pt %icc, 1f
add %sp, PTREGS_OFF, %o0
+ mov %l4, %o2
call sun4v_do_mna
- nop
+ mov %l5, %o1
ba,a,pt %xcc, rtrap_clr_l6
-1: call mem_address_unaligned
+1: mov %l4, %o1
+ mov %l5, %o2
+ call mem_address_unaligned
nop
ba,a,pt %xcc, rtrap_clr_l6