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 In pmap_{zero, copy}_page4m() use setpgt...
details: https://anonhg.NetBSD.org/src/rev/ed51559376d8
branches: trunk
changeset: 472217:ed51559376d8
user: pk <pk%NetBSD.org@localhost>
date: Sun Apr 25 10:30:02 1999 +0000
description:
In pmap_{zero,copy}_page4m() use setpgt4m() to setup temporary address
mappings.
diffstat:
sys/arch/sparc/sparc/pmap.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (40 lines):
diff -r eb2e3a8565f8 -r ed51559376d8 sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c Sun Apr 25 10:26:29 1999 +0000
+++ b/sys/arch/sparc/sparc/pmap.c Sun Apr 25 10:30:02 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.141 1999/03/26 23:41:35 mycroft Exp $ */
+/* $NetBSD: pmap.c,v 1.142 1999/04/25 10:30:02 pk Exp $ */
/*
* Copyright (c) 1996
@@ -6417,11 +6417,11 @@
pte &= ~SRMMU_PG_C;
va = vpage[0];
- *vpage_pte[0] = pte;
+ setpgt4m(vpage_pte[0], pte);
qzero(va, NBPG);
/* Remove temporary mapping */
tlb_flush_page((int)va);
- *vpage_pte[0] = SRMMU_TEINVALID;
+ setpgt4m(vpage_pte[0], SRMMU_TEINVALID);
}
/*
@@ -6461,12 +6461,12 @@
sva = vpage[0];
dva = vpage[1];
- *vpage_pte[0] = spte;
- *vpage_pte[1] = dpte;
+ setpgt4m(vpage_pte[0], spte);
+ setpgt4m(vpage_pte[1], dpte);
qcopy(sva, dva, NBPG); /* loads cache, so we must ... */
cache_flush_page((int)sva);
- *vpage_pte[0] = SRMMU_TEINVALID;
- *vpage_pte[1] = SRMMU_TEINVALID;
+ setpgt4m(vpage_pte[0], SRMMU_TEINVALID);
+ setpgt4m(vpage_pte[1], SRMMU_TEINVALID);
tlb_flush_page((int)sva);
tlb_flush_page((int)dva);
}
Home |
Main Index |
Thread Index |
Old Index