summaryrefslogtreecommitdiff
path: root/sys/vm/vm_page.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r--sys/vm/vm_page.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index c2a2285d8db..4436f7c08c3 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_page.c,v 1.7 1997/09/22 20:44:52 niklas Exp $ */
+/* $OpenBSD: vm_page.c,v 1.8 1997/09/25 07:06:27 niklas Exp $ */
/* $NetBSD: vm_page.c,v 1.31 1997/06/06 23:10:23 thorpej Exp $ */
#define VM_PAGE_ALLOC_MEMORY_STATS
@@ -444,6 +444,11 @@ pmap_steal_memory(size)
{
vm_offset_t addr, vaddr, paddr;
+#ifdef i386 /* XXX i386 calls pmap_steal_memory before vm_mem_init() */
+ if (cnt.v_page_size == 0) /* XXX */
+ vm_set_page_size();
+#endif
+
/*
* We round the size to an integer multiple.
*/