aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/etrap.S
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-02-08 01:13:05 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 04:11:56 -0500
commit8b11bd12aff76e02cdc2cbc9e439bba88d281223 (patch)
tree903ab8830616bfbe5a821e4359f642842c8060a4 /arch/sparc64/kernel/etrap.S
parent481295f982b21b1dbe71cbf41d3a93028fee30d1 (diff)
[SPARC64]: Patch up mmu context register writes for sun4v.
sun4v uses ASI_MMU instead of ASI_DMMU Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/etrap.S')
-rw-r--r--arch/sparc64/kernel/etrap.S8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/etrap.S b/arch/sparc64/kernel/etrap.S
index d8c062a1700c..a0e7d480e5dc 100644
--- a/arch/sparc64/kernel/etrap.S
+++ b/arch/sparc64/kernel/etrap.S
@@ -95,7 +95,13 @@ etrap_save: save %g2, -STACK_BIAS, %sp
95 wrpr %g2, 0, %wstate 95 wrpr %g2, 0, %wstate
96 sethi %hi(sparc64_kern_pri_context), %g2 96 sethi %hi(sparc64_kern_pri_context), %g2
97 ldx [%g2 + %lo(sparc64_kern_pri_context)], %g3 97 ldx [%g2 + %lo(sparc64_kern_pri_context)], %g3
98 stxa %g3, [%l4] ASI_DMMU 98
99661: stxa %g3, [%l4] ASI_DMMU
100 .section .sun4v_1insn_patch, "ax"
101 .word 661b
102 stxa %g3, [%l4] ASI_MMU
103 .previous
104
99 sethi %hi(KERNBASE), %l4 105 sethi %hi(KERNBASE), %l4
100 flush %l4 106 flush %l4
101 mov ASI_AIUS, %l7 107 mov ASI_AIUS, %l7