aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2006-01-31 21:33:12 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 04:11:23 -0500
commit6b6d017235acad3ee1681140795593723bb9b9df (patch)
tree5c7f279d483c3d270b6ef3f158239e4d38785a14
parent4da808c352c290d3f762933d44d4ab90c2fd65f3 (diff)
[SPARC64]: Use sparc64_highest_unlocked_tlb_ent in __tsb_context_switch()
Instead of ugly hard-coded value. Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--arch/sparc64/kernel/tsb.S14
1 files changed, 8 insertions, 6 deletions
diff --git a/arch/sparc64/kernel/tsb.S b/arch/sparc64/kernel/tsb.S
index 08405ed69288..c1532292a625 100644
--- a/arch/sparc64/kernel/tsb.S
+++ b/arch/sparc64/kernel/tsb.S
@@ -185,12 +185,14 @@ __tsb_context_switch:
185 * 185 *
186 * XXX Interactions with prom_world()... 186 * XXX Interactions with prom_world()...
187 */ 187 */
188 mov TLB_TAG_ACCESS, %g1 188 sethi %hi(sparc64_highest_unlocked_tlb_ent), %o4
189 stxa %o2, [%g1] ASI_DMMU 189 mov TLB_TAG_ACCESS, %g1
190 membar #Sync 190 lduw [%o4 + %lo(sparc64_highest_unlocked_tlb_ent)], %g2
191 mov (61 << 3), %g1 191 stxa %o2, [%g1] ASI_DMMU
192 stxa %o3, [%g1] ASI_DTLB_DATA_ACCESS 192 membar #Sync
193 membar #Sync 193 sllx %g2, 3, %g2
194 stxa %o3, [%g2] ASI_DTLB_DATA_ACCESS
195 membar #Sync
1949: 1969:
195 wrpr %o5, %pstate 197 wrpr %o5, %pstate
196 198