From 2f3e2b87956ae0fab828ce3109219043bb3afd88 Mon Sep 17 00:00:00 2001
From: Jake Burkholder <jake@FreeBSD.org>
Date: Sun, 17 Mar 2002 01:45:29 +0000
Subject: [PATCH] Use the tlb data access register to map the kernel tsb,
 rather than the data in register.  The latter uses the random replacment
 algorithm to pick the slot, we want a specific slot.

---
 sys/sparc64/sparc64/pmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/sparc64/sparc64/pmap.c b/sys/sparc64/sparc64/pmap.c
index 4b5760428bf0..14b4b0c75cc8 100644
--- a/sys/sparc64/sparc64/pmap.c
+++ b/sys/sparc64/sparc64/pmap.c
@@ -431,7 +431,7 @@ pmap_map_tsb(void)
 		    TD_P | TD_W;
 		stxa(AA_DMMU_TAR, ASI_DMMU, TLB_TAR_VA(va) |
 		    TLB_TAR_CTX(TLB_CTX_KERNEL));
-		stxa(TLB_DAR_SLOT(slot), ASI_DTLB_DATA_IN_REG, data);
+		stxa(TLB_DAR_SLOT(slot), ASI_DTLB_DATA_ACCESS_REG, data);
 		membar(Sync);
 	}