From ec66f67f3ae625fa9f5409f506714942a3191b04 Mon Sep 17 00:00:00 2001 From: thorpej Date: Sun, 22 Apr 2001 23:28:52 +0000 Subject: [PATCH] Use pmap_kenter_pa() rather than pmap_kenter_pgs(). --- 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(-) diff --git a/sys/arch/arm26/arm26/machdep.c b/sys/arch/arm26/arm26/machdep.c index 674562911df1..584277f7ee10 100644 --- a/sys/arch/arm26/arm26/machdep.c +++ b/sys/arch/arm26/arm26/machdep.c @@ -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 -__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 #include @@ -161,7 +161,8 @@ cpu_startup() 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 --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index 0a75918c3bae..53b19cbc0b0a 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -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 @@ i386_bufinit() 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 --git a/sys/arch/pc532/pc532/machdep.c b/sys/arch/pc532/pc532/machdep.c index 10f643575edb..d73e5de602e1 100644 --- a/sys/arch/pc532/pc532/machdep.c +++ b/sys/arch/pc532/pc532/machdep.c @@ -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 @@ cpu_startup() 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; }