Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Use pmap_kenter_pa() rather than pmap_kenter_pgs().
details: https://anonhg.NetBSD.org/src/rev/e607dedbcd86
branches: trunk
changeset: 508946:e607dedbcd86
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Apr 22 23:28:52 2001 +0000
description:
Use pmap_kenter_pa() rather than pmap_kenter_pgs().
diffstat:
sys/arch/arm26/arm26/machdep.c | 7 ++++---
sys/arch/i386/i386/machdep.c | 5 +++--
sys/arch/pc532/pc532/machdep.c | 5 +++--
3 files changed, 10 insertions(+), 7 deletions(-)
diffs (66 lines):
diff -r 83f6875ee79b -r e607dedbcd86 sys/arch/arm26/arm26/machdep.c
--- a/sys/arch/arm26/arm26/machdep.c Sun Apr 22 23:19:26 2001 +0000
+++ b/sys/arch/arm26/arm26/machdep.c Sun Apr 22 23:28:52 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.6 2001/03/15 06:10:36 chs Exp $ */
+/* $NetBSD: machdep.c,v 1.7 2001/04/22 23:28:52 thorpej Exp $ */
/*-
* Copyright (c) 1998 Ben Harris
@@ -33,7 +33,7 @@
#include <sys/param.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.6 2001/03/15 06:10:36 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.7 2001/04/22 23:28:52 thorpej Exp $");
#include <sys/buf.h>
#include <sys/mbuf.h>
@@ -161,7 +161,8 @@
if (pg == NULL)
panic("cpu_startup: not enough memory for "
"buffer cache");
- pmap_kenter_pgs(curbuf, &pg, 1);
+ pmap_kenter_pa(curbuf, VM_PAGE_TO_PHYS(pg),
+ VM_PROT_READ|VM_PROT_WRITE);
curbuf += PAGE_SIZE;
curbufsize -= PAGE_SIZE;
}
diff -r 83f6875ee79b -r e607dedbcd86 sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c Sun Apr 22 23:19:26 2001 +0000
+++ b/sys/arch/i386/i386/machdep.c Sun Apr 22 23:28:52 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.433 2001/04/20 09:10:45 kanaoka Exp $ */
+/* $NetBSD: machdep.c,v 1.434 2001/04/22 23:29:56 thorpej Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -548,7 +548,8 @@
if (pg == NULL)
panic("cpu_startup: not enough memory for "
"buffer cache");
- pmap_kenter_pgs(curbuf, &pg, 1);
+ pmap_kenter_pa(curbuf, VM_PAGE_TO_PHYS(pg),
+ VM_PROT_READ|VM_PROT_WRITE);
curbuf += PAGE_SIZE;
curbufsize -= PAGE_SIZE;
}
diff -r 83f6875ee79b -r e607dedbcd86 sys/arch/pc532/pc532/machdep.c
--- a/sys/arch/pc532/pc532/machdep.c Sun Apr 22 23:19:26 2001 +0000
+++ b/sys/arch/pc532/pc532/machdep.c Sun Apr 22 23:28:52 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.119 2001/03/15 06:10:46 chs Exp $ */
+/* $NetBSD: machdep.c,v 1.120 2001/04/22 23:30:46 thorpej Exp $ */
/*-
* Copyright (c) 1996 Matthias Pfaller.
@@ -218,7 +218,8 @@
if (pg == NULL)
panic("cpu_startup: not enough memory for "
"buffer cache");
- pmap_kenter_pgs(curbuf, &pg, 1);
+ pmap_kenter_pa(curbuf, VM_PAGE_TO_PHYS(pg),
+ VM_PROT_READ|VM_PROT_WRITE);
curbuf += PAGE_SIZE;
curbufsize -= PAGE_SIZE;
}
Home |
Main Index |
Thread Index |
Old Index