Use pmap_kenter_pa() rather than pmap_kenter_pgs().
This commit is contained in:
parent
69abdbf60c
commit
ec66f67f3a
|
@ -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
|
* Copyright (c) 1998 Ben Harris
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
#include <sys/param.h>
|
#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/buf.h>
|
||||||
#include <sys/mbuf.h>
|
#include <sys/mbuf.h>
|
||||||
|
@ -161,7 +161,8 @@ cpu_startup()
|
||||||
if (pg == NULL)
|
if (pg == NULL)
|
||||||
panic("cpu_startup: not enough memory for "
|
panic("cpu_startup: not enough memory for "
|
||||||
"buffer cache");
|
"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;
|
curbuf += PAGE_SIZE;
|
||||||
curbufsize -= PAGE_SIZE;
|
curbufsize -= PAGE_SIZE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
|
||||||
|
@ -548,7 +548,8 @@ i386_bufinit()
|
||||||
if (pg == NULL)
|
if (pg == NULL)
|
||||||
panic("cpu_startup: not enough memory for "
|
panic("cpu_startup: not enough memory for "
|
||||||
"buffer cache");
|
"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;
|
curbuf += PAGE_SIZE;
|
||||||
curbufsize -= PAGE_SIZE;
|
curbufsize -= PAGE_SIZE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1996 Matthias Pfaller.
|
||||||
|
@ -218,7 +218,8 @@ cpu_startup()
|
||||||
if (pg == NULL)
|
if (pg == NULL)
|
||||||
panic("cpu_startup: not enough memory for "
|
panic("cpu_startup: not enough memory for "
|
||||||
"buffer cache");
|
"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;
|
curbuf += PAGE_SIZE;
|
||||||
curbufsize -= PAGE_SIZE;
|
curbufsize -= PAGE_SIZE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue