summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>1999-08-25 09:13:54 +0000
committerHakan Olsson <ho@cvs.openbsd.org>1999-08-25 09:13:54 +0000
commitfc00725dfad5025a0ae59de6092ebcad802e1831 (patch)
tree961ff294acb2e57658951c991851e487eb69e5e4 /sys/arch
parenta443b460ecb99a9b8a7492794ac695183a686c9b (diff)
Compile under UVM and versions of egcs. art@ ok.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/i386/pmap.c4
-rw-r--r--sys/arch/i386/i386/pmap.old.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c
index 87928d9caad..ffe15058102 100644
--- a/sys/arch/i386/i386/pmap.c
+++ b/sys/arch/i386/i386/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.30 1999/07/02 12:25:50 niklas Exp $ */
+/* $OpenBSD: pmap.c,v 1.31 1999/08/25 09:13:53 ho Exp $ */
/* $NetBSD: pmap.c,v 1.36 1996/05/03 19:42:22 christos Exp $ */
/*
@@ -301,6 +301,7 @@ pmap_bootstrap(virtual_start)
*/
virtual_avail = reserve_dumppages(virtual_avail);
+#if !defined(UVM)
/* flawed, no mappings?? */
if (ctob(physmem) > 31*1024*1024 && MAXKPDE != NKPDE) {
vm_offset_t p;
@@ -313,6 +314,7 @@ pmap_bootstrap(virtual_start)
PTD[KPTDI+i] = (pd_entry_t)p |
PG_V | PG_KW;
}
+#endif
/*
* we must call vm_page_physload() after we are done playing
diff --git a/sys/arch/i386/i386/pmap.old.c b/sys/arch/i386/i386/pmap.old.c
index bfd7f719470..50fb4a90c3e 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.30 1999/07/02 12:25:50 niklas Exp $ */
+/* $OpenBSD: pmap.old.c,v 1.31 1999/08/25 09:13:53 ho Exp $ */
/* $NetBSD: pmap.c,v 1.36 1996/05/03 19:42:22 christos Exp $ */
/*
@@ -301,6 +301,7 @@ pmap_bootstrap(virtual_start)
*/
virtual_avail = reserve_dumppages(virtual_avail);
+#if !defined(UVM)
/* flawed, no mappings?? */
if (ctob(physmem) > 31*1024*1024 && MAXKPDE != NKPDE) {
vm_offset_t p;
@@ -313,6 +314,7 @@ pmap_bootstrap(virtual_start)
PTD[KPTDI+i] = (pd_entry_t)p |
PG_V | PG_KW;
}
+#endif
/*
* we must call vm_page_physload() after we are done playing