aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/ktlb.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc64/kernel/ktlb.S')
-rw-r--r--arch/sparc64/kernel/ktlb.S18
1 files changed, 16 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/ktlb.S b/arch/sparc64/kernel/ktlb.S
index 9b415ab6db6b..c1335432124e 100644
--- a/arch/sparc64/kernel/ktlb.S
+++ b/arch/sparc64/kernel/ktlb.S
@@ -60,8 +60,15 @@ kvmap_itlb_load:
60 retry 60 retry
61 61
62kvmap_itlb_longpath: 62kvmap_itlb_longpath:
63 rdpr %pstate, %g5 63
64661: rdpr %pstate, %g5
64 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate 65 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
66 .section .gl_2insn_patch, "ax"
67 .word 661b
68 nop
69 nop
70 .previous
71
65 rdpr %tpc, %g5 72 rdpr %tpc, %g5
66 ba,pt %xcc, sparc64_realfault_common 73 ba,pt %xcc, sparc64_realfault_common
67 mov FAULT_CODE_ITLB, %g4 74 mov FAULT_CODE_ITLB, %g4
@@ -161,8 +168,15 @@ kvmap_check_obp:
161 nop 168 nop
162 169
163kvmap_dtlb_longpath: 170kvmap_dtlb_longpath:
164 rdpr %pstate, %g5 171
172661: rdpr %pstate, %g5
165 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate 173 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
174 .section .gl_2insn_patch, "ax"
175 .word 661b
176 nop
177 nop
178 .previous
179
166 rdpr %tl, %g4 180 rdpr %tl, %g4
167 cmp %g4, 1 181 cmp %g4, 1
168 mov TLB_TAG_ACCESS, %g4 182 mov TLB_TAG_ACCESS, %g4