Skip to content

Commit

Permalink
[SPARC64]: Use sparc64_highest_unlocked_tlb_ent in __tsb_context_swit…
Browse files Browse the repository at this point in the history
…ch()

Instead of ugly hard-coded value.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller authored and David S. Miller committed Mar 20, 2006
1 parent 4da808c commit 6b6d017
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions arch/sparc64/kernel/tsb.S
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,14 @@ __tsb_context_switch:
*
* XXX Interactions with prom_world()...
*/
mov TLB_TAG_ACCESS, %g1
stxa %o2, [%g1] ASI_DMMU
membar #Sync
mov (61 << 3), %g1
stxa %o3, [%g1] ASI_DTLB_DATA_ACCESS
membar #Sync
sethi %hi(sparc64_highest_unlocked_tlb_ent), %o4
mov TLB_TAG_ACCESS, %g1
lduw [%o4 + %lo(sparc64_highest_unlocked_tlb_ent)], %g2
stxa %o2, [%g1] ASI_DMMU
membar #Sync
sllx %g2, 3, %g2
stxa %o3, [%g2] ASI_DTLB_DATA_ACCESS
membar #Sync
9:
wrpr %o5, %pstate

Expand Down

0 comments on commit 6b6d017

Please sign in to comment.