summaryrefslogtreecommitdiff
path: root/arch/sparc64/kernel/tsb.S
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2006-01-31 18:32:04 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 01:11:19 -0800
commitb70c0fa1613c4f69b4a340a0e2bee387560ebbb1 (patch)
treef7bf22ab75cb9118f5772353fef6efd923faa212 /arch/sparc64/kernel/tsb.S
parentbd40791e1d289d807b8580abe1f117e9c62894e4 (diff)
[SPARC64]: Preload TSB entries from update_mmu_cache().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/tsb.S')
-rw-r--r--arch/sparc64/kernel/tsb.S17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/tsb.S b/arch/sparc64/kernel/tsb.S
index fe266bad0a2..08405ed6928 100644
--- a/arch/sparc64/kernel/tsb.S
+++ b/arch/sparc64/kernel/tsb.S
@@ -126,6 +126,23 @@ winfix_trampoline:
wrpr %g3, %tnpc ! Write it into TNPC
done ! Trap return
+ /* Insert an entry into the TSB.
+ *
+ * %o0: TSB entry pointer
+ * %o1: tag
+ * %o2: pte
+ */
+ .align 32
+ .globl tsb_insert
+tsb_insert:
+ rdpr %pstate, %o5
+ wrpr %o5, PSTATE_IE, %pstate
+ TSB_LOCK_TAG(%o0, %g2, %g3)
+ TSB_WRITE(%o0, %o2, %o1)
+ wrpr %o5, %pstate
+ retl
+ nop
+
/* Reload MMU related context switch state at
* schedule() time.
*