projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4da808c
)
[SPARC64]: Use sparc64_highest_unlocked_tlb_ent in __tsb_context_switch()
author
David S. Miller
<davem@davemloft.net>
Wed, 1 Feb 2006 02:33:12 +0000
(18:33 -0800)
committer
David S. Miller
<davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:11:23 +0000
(
01:11
-0800)
Instead of ugly hard-coded value.
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/tsb.S
patch
|
blob
|
history
diff --git
a/arch/sparc64/kernel/tsb.S
b/arch/sparc64/kernel/tsb.S
index 08405ed69288ee82a2aa7e67d83b610a7eacf846..c1532292a625e5fa78b427476e3bdf7cbeda220b 100644
(file)
--- a/
arch/sparc64/kernel/tsb.S
+++ b/
arch/sparc64/kernel/tsb.S
@@
-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