Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc pmap_kenter_pa4m: like pmap_enk4m(), we...
details: https://anonhg.NetBSD.org/src/rev/a94dea511cb4
branches: trunk
changeset: 542179:a94dea511cb4
user: pk <pk%NetBSD.org@localhost>
date: Thu Jan 23 12:48:53 2003 +0000
description:
pmap_kenter_pa4m: like pmap_enk4m(), we can use setpte4m().
ctx_free: fix cache flush context for sun4/sun4c.
diffstat:
sys/arch/sparc/sparc/pmap.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 37773e011378 -r a94dea511cb4 sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c Thu Jan 23 12:41:33 2003 +0000
+++ b/sys/arch/sparc/sparc/pmap.c Thu Jan 23 12:48:53 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.234 2003/01/20 22:03:54 pk Exp $ */
+/* $NetBSD: pmap.c,v 1.235 2003/01/23 12:48:53 pk Exp $ */
/*
* Copyright (c) 1996
@@ -2075,8 +2075,9 @@
#if defined(SUN4) || defined(SUN4C)
if (CPU_ISSUN4 || CPU_ISSUN4C) {
int octx = getcontext4();
+ setcontext4(ctx);
cache_flush_context(ctx);
- setcontext(octx);
+ setcontext4(octx);
}
#endif /* SUN4 || SUN4C */
@@ -6228,7 +6229,7 @@
KASSERT((tpte & SRMMU_TETYPE) != SRMMU_TEPTE);
sp->sg_npte++;
- setpgt4m_va(va, &sp->sg_pte[VA_SUN4M_VPG(va)], pteproto, 1, 0, CPUSET_ALL);
+ setpgt4m(&sp->sg_pte[VA_SUN4M_VPG(va)], pteproto);
}
void
Home |
Main Index |
Thread Index |
Old Index