mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-12 09:32:44 +00:00
[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>
This commit is contained in:
parent
4da808c352
commit
6b6d017235
1 changed files with 8 additions and 6 deletions
|
@ -185,12 +185,14 @@ __tsb_context_switch:
|
||||||
*
|
*
|
||||||
* XXX Interactions with prom_world()...
|
* XXX Interactions with prom_world()...
|
||||||
*/
|
*/
|
||||||
mov TLB_TAG_ACCESS, %g1
|
sethi %hi(sparc64_highest_unlocked_tlb_ent), %o4
|
||||||
stxa %o2, [%g1] ASI_DMMU
|
mov TLB_TAG_ACCESS, %g1
|
||||||
membar #Sync
|
lduw [%o4 + %lo(sparc64_highest_unlocked_tlb_ent)], %g2
|
||||||
mov (61 << 3), %g1
|
stxa %o2, [%g1] ASI_DMMU
|
||||||
stxa %o3, [%g1] ASI_DTLB_DATA_ACCESS
|
membar #Sync
|
||||||
membar #Sync
|
sllx %g2, 3, %g2
|
||||||
|
stxa %o3, [%g2] ASI_DTLB_DATA_ACCESS
|
||||||
|
membar #Sync
|
||||||
9:
|
9:
|
||||||
wrpr %o5, %pstate
|
wrpr %o5, %pstate
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue