summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-03-20 15:40:39 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-03-20 15:40:39 +0000
commit4d4f0cc25606e02f016b00565a10be0dab33319f (patch)
tree0ac878cbb538e0a0b6dba2296ec24a0ebebaa330 /sys/arch
parentacf51b3f5542b0c629b32d22d25528b9a5913879 (diff)
Some cleanup of page steals
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/i386/pmap.c8
-rw-r--r--sys/arch/i386/i386/pmap.old.c8
2 files changed, 10 insertions, 6 deletions
diff --git a/sys/arch/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c
index bf773284dde..a70c4141b38 100644
--- a/sys/arch/i386/i386/pmap.c
+++ b/sys/arch/i386/i386/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.23 1998/01/20 18:40:15 niklas Exp $ */
+/* $OpenBSD: pmap.c,v 1.24 1998/03/20 15:40:32 niklas Exp $ */
/* $NetBSD: pmap.c,v 1.36 1996/05/03 19:42:22 christos Exp $ */
/*
@@ -287,12 +287,15 @@ pmap_bootstrap(virtual_start)
*/
virtual_avail = reserve_dumppages(virtual_avail);
+ /* Register the page size with the vm system */
+ vm_set_page_size();
+
/* flawed, no mappings?? */
if (ctob(physmem) > 31*1024*1024 && MAXKPDE != NKPDE) {
vm_offset_t p;
int i;
- p = pmap_steal_memory((MAXKPDE-NKPDE+1) * NBPG);
+ p = vm_bootstrap_steal_memory((MAXKPDE-NKPDE+1) * NBPG);
bzero((void *)p, (MAXKPDE-NKPDE+1) * NBPG);
p = round_page(p);
for (i = NKPDE; i < MAXKPDE; i++, p += NBPG)
@@ -308,7 +311,6 @@ pmap_virtual_space(startp, endp)
vm_offset_t *startp;
vm_offset_t *endp;
{
-
*startp = virtual_avail;
*endp = virtual_end;
}
diff --git a/sys/arch/i386/i386/pmap.old.c b/sys/arch/i386/i386/pmap.old.c
index fc10b16125b..ae9d1696b9b 100644
--- a/sys/arch/i386/i386/pmap.old.c
+++ b/sys/arch/i386/i386/pmap.old.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.old.c,v 1.23 1998/01/20 18:40:15 niklas Exp $ */
+/* $OpenBSD: pmap.old.c,v 1.24 1998/03/20 15:40:32 niklas Exp $ */
/* $NetBSD: pmap.c,v 1.36 1996/05/03 19:42:22 christos Exp $ */
/*
@@ -287,12 +287,15 @@ pmap_bootstrap(virtual_start)
*/
virtual_avail = reserve_dumppages(virtual_avail);
+ /* Register the page size with the vm system */
+ vm_set_page_size();
+
/* flawed, no mappings?? */
if (ctob(physmem) > 31*1024*1024 && MAXKPDE != NKPDE) {
vm_offset_t p;
int i;
- p = pmap_steal_memory((MAXKPDE-NKPDE+1) * NBPG);
+ p = vm_bootstrap_steal_memory((MAXKPDE-NKPDE+1) * NBPG);
bzero((void *)p, (MAXKPDE-NKPDE+1) * NBPG);
p = round_page(p);
for (i = NKPDE; i < MAXKPDE; i++, p += NBPG)
@@ -308,7 +311,6 @@ pmap_virtual_space(startp, endp)
vm_offset_t *startp;
vm_offset_t *endp;
{
-
*startp = virtual_avail;
*endp = virtual_end;
}