summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-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
-rw-r--r--sys/uvm/uvm_pmap.h3
4 files changed, 25 insertions, 5 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.
diff --git a/sys/uvm/uvm_pmap.h b/sys/uvm/uvm_pmap.h
index ccc64e2dfe7..5e9617bc624 100644
--- a/sys/uvm/uvm_pmap.h
+++ b/sys/uvm/uvm_pmap.h
@@ -147,10 +147,9 @@ void pmap_remove __P((pmap_t, vaddr_t, vaddr_t));
void pmap_update __P((void));
void pmap_zero_page __P((paddr_t));
+void pmap_virtual_space __P((vaddr_t *, vaddr_t *));
#if defined(PMAP_STEAL_MEMORY)
vaddr_t pmap_steal_memory __P((vsize_t, vaddr_t *, vaddr_t *));
-#else
-void pmap_virtual_space __P((vaddr_t *, vaddr_t *));
#endif
#if defined(PMAP_FORK)