summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2008-05-13 21:54:15 +0000
committermiod <miod@openbsd.org>2008-05-13 21:54:15 +0000
commita36d80a5bbea6fc650e0b93363dbc6fafee8ff10 (patch)
tree8475ed2331eb16920c897770906e894b1ca9445e
parentMeaningful panic messages; ok kettenis (diff)
downloadwireguard-openbsd-a36d80a5bbea6fc650e0b93363dbc6fafee8ff10.tar.xz
wireguard-openbsd-a36d80a5bbea6fc650e0b93363dbc6fafee8ff10.zip
Memory is contiguous and non-expandable, so lower VM_PHYSSEG_MAX down to 1.
ok kettenis@
-rw-r--r--sys/arch/socppc/include/vmparam.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/socppc/include/vmparam.h b/sys/arch/socppc/include/vmparam.h
index 0cdd4986416..b1959a28544 100644
--- a/sys/arch/socppc/include/vmparam.h
+++ b/sys/arch/socppc/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.1 2008/05/10 12:02:21 kettenis Exp $ */
+/* $OpenBSD: vmparam.h,v 1.2 2008/05/13 21:54:15 miod Exp $ */
/* $NetBSD: vmparam.h,v 1.1 1996/09/30 16:34:38 ws Exp $ */
/*-
@@ -89,9 +89,9 @@ extern vaddr_t ppc_kvm_stolen;
#define VM_PHYS_SIZE (USRIOSIZE * PAGE_SIZE)
-#define VM_PHYSSEG_MAX 32 /* actually we could have this many segments */
-#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
-#define VM_PHYSSEG_NOADD /* can't add RAM after vm_mem_init */
+#define VM_PHYSSEG_MAX 1
+#define VM_PHYSSEG_NOADD
+#define VM_PHYSSEG_STRAT VM_PSTRAT_RANDOM
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0