diff options
-rw-r--r-- | sys/arch/amiga/amiga/machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/hp300/hp300/machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/mvme68k/mvme68k/machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/mvme88k/mvme88k/machdep.c | 5 |
4 files changed, 15 insertions, 8 deletions
diff --git a/sys/arch/amiga/amiga/machdep.c b/sys/arch/amiga/amiga/machdep.c index f72b52e8698..6d725642d17 100644 --- a/sys/arch/amiga/amiga/machdep.c +++ b/sys/arch/amiga/amiga/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.59 2001/11/28 13:47:37 art Exp $ */ +/* $OpenBSD: machdep.c,v 1.60 2001/11/28 13:57:18 art Exp $ */ /* $NetBSD: machdep.c,v 1.95 1997/08/27 18:31:17 is Exp $ */ /* @@ -446,7 +446,9 @@ again: if (pg == NULL) panic("cpu_startup: not enough memory for " "buffer cache"); - pmap_kenter_pgs(curbuf, &pg, 1); + + pmap_kenter_pa(va, VM_PAGE_TO_PHYS(pg), + VM_PROT_READ|VM_PROT_WRITE); curbuf += PAGE_SIZE; curbufsize -= PAGE_SIZE; } diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c index b3d519e6285..29a268861c9 100644 --- a/sys/arch/hp300/hp300/machdep.c +++ b/sys/arch/hp300/hp300/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.69 2001/11/28 13:47:38 art Exp $ */ +/* $OpenBSD: machdep.c,v 1.70 2001/11/28 13:57:18 art Exp $ */ /* $NetBSD: machdep.c,v 1.121 1999/03/26 23:41:29 mycroft Exp $ */ /* @@ -317,7 +317,9 @@ cpu_startup() if (pg == NULL) panic("cpu_startup: not enough memory for " "buffer cache"); - pmap_kenter_pgs(curbuf, &pg, 1); + + pmap_kenter_pa(va, VM_PAGE_TO_PHYS(pg), + VM_PROT_READ|VM_PROT_WRITE); curbuf += PAGE_SIZE; curbufsize -= PAGE_SIZE; } diff --git a/sys/arch/mvme68k/mvme68k/machdep.c b/sys/arch/mvme68k/mvme68k/machdep.c index cf3c51eebd0..5f5b3389e2c 100644 --- a/sys/arch/mvme68k/mvme68k/machdep.c +++ b/sys/arch/mvme68k/mvme68k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.57 2001/11/28 13:47:38 art Exp $ */ +/* $OpenBSD: machdep.c,v 1.58 2001/11/28 13:57:18 art Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -373,7 +373,9 @@ again: if (pg == NULL) panic("cpu_startup: not enough memory for " "buffer cache"); - pmap_kenter_pgs(curbuf, &pg, 1); + + pmap_kenter_pa(va, VM_PAGE_TO_PHYS(pg), + VM_PROT_READ|VM_PROT_WRITE); curbuf += PAGE_SIZE; curbufsize -= PAGE_SIZE; } diff --git a/sys/arch/mvme88k/mvme88k/machdep.c b/sys/arch/mvme88k/mvme88k/machdep.c index 1ae80a69a31..0aef05dcc80 100644 --- a/sys/arch/mvme88k/mvme88k/machdep.c +++ b/sys/arch/mvme88k/mvme88k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.66 2001/11/28 13:47:38 art Exp $ */ +/* $OpenBSD: machdep.c,v 1.67 2001/11/28 13:57:18 art Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -627,7 +627,8 @@ cpu_startup() if (pg == NULL) panic("cpu_startup: not enough memory for " "buffer cache"); - pmap_kenter_pgs(curbuf, &pg, 1); + pmap_kenter_pa(va, VM_PAGE_TO_PHYS(pg), + VM_PROT_READ|VM_PROT_WRITE); curbuf += PAGE_SIZE; curbufsize -= PAGE_SIZE; } |