summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-11-28 14:20:17 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-11-28 14:20:17 +0000
commit3c590e6dd36d1bd513749528be7e50b6b57a3420 (patch)
treec7760f639ca6d6be5cff24f95b917ce8a425059d /sys/arch
parentb3a75296ffff7c75a11696f1dc07ddf8fe8ad4ca (diff)
make pmap_virtual_space madatory in all pmaps.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/alpha/alpha/pmap.c9
-rw-r--r--sys/arch/hppa/hppa/pmap.c9
-rw-r--r--sys/arch/vax/vax/pmap.c9
3 files changed, 24 insertions, 3 deletions
diff --git a/sys/arch/alpha/alpha/pmap.c b/sys/arch/alpha/alpha/pmap.c
index 366065e25ac..97e80b548e1 100644
--- a/sys/arch/alpha/alpha/pmap.c
+++ b/sys/arch/alpha/alpha/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.26 2001/11/28 14:13:06 art Exp $ */
+/* $OpenBSD: pmap.c,v 1.27 2001/11/28 14:20:16 art Exp $ */
/* $NetBSD: pmap.c,v 1.154 2000/12/07 22:18:55 thorpej Exp $ */
/*-
@@ -1036,6 +1036,13 @@ pmap_uses_prom_console(void)
}
#endif /* _PMAP_MAY_USE_PROM_CONSOLE */
+void
+pmap_virtual_space(vaddr_t *vstartp, vaddr_t *vendp)
+{
+ *vstartp = VM_MIN_KERNEL_ADDRESS;
+ *vendp = VM_MAX_KERNEL_ADDRESS;
+}
+
/*
* pmap_steal_memory: [ INTERFACE ]
*
diff --git a/sys/arch/hppa/hppa/pmap.c b/sys/arch/hppa/hppa/pmap.c
index 5f4277fd920..0ee35b4bdd2 100644
--- a/sys/arch/hppa/hppa/pmap.c
+++ b/sys/arch/hppa/hppa/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.49 2001/11/28 14:13:06 art Exp $ */
+/* $OpenBSD: pmap.c,v 1.50 2001/11/28 14:20:16 art Exp $ */
/*
* Copyright (c) 1998-2001 Michael Shalayeff
@@ -763,6 +763,13 @@ pmap_bootstrap(vstart, vend)
and we use it for pmap_steal_memory */
}
+void
+pmap_virtual_space(vaddr_t *vstartp, vaddr_t *vendp)
+{
+ *vstartp = virtual_avail;
+ *vendp = virtual_end;
+}
+
/*
* pmap_steal_memory(size, startp, endp)
* steals memory block of size `size' from directly mapped
diff --git a/sys/arch/vax/vax/pmap.c b/sys/arch/vax/vax/pmap.c
index 1a4e14a5b90..c71c0c6ec03 100644
--- a/sys/arch/vax/vax/pmap.c
+++ b/sys/arch/vax/vax/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.26 2001/11/28 14:13:07 art Exp $ */
+/* $OpenBSD: pmap.c,v 1.27 2001/11/28 14:20:16 art Exp $ */
/* $NetBSD: pmap.c,v 1.74 1999/11/13 21:32:25 matt Exp $ */
/*
* Copyright (c) 1994, 1998, 1999 Ludd, University of Lule}, Sweden.
@@ -274,6 +274,13 @@ pmap_bootstrap()
mtpr(1, PR_MAPEN);
}
+void
+pmap_virtual_space(vaddr_t *vstartp, vaddr_t *vendp)
+{
+ *vstartp = virtual_avail;
+ *vendp = virtual_end;
+}
+
/*
* Let the VM system do early memory allocation from the direct-mapped
* physical memory instead.