summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-03-30 20:13:15 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-03-30 20:13:15 +0000
commit6011cbbaf90dcc4db566064046e4de26090d8839 (patch)
tree1f624db62a3877ad3f54a5214c7deaba53dc694e /sys/arch/mips64
parenteb77107c7287dc3642b7c8376fb623de0b6c4a23 (diff)
Allow the machine-specific headers to overwrite the number of memory
segments and the number of freelists.
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/include/memconf.h4
-rw-r--r--sys/arch/mips64/include/vmparam.h6
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/mips64/include/memconf.h b/sys/arch/mips64/include/memconf.h
index 1ad9c8b48a5..f3d76e143a3 100644
--- a/sys/arch/mips64/include/memconf.h
+++ b/sys/arch/mips64/include/memconf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: memconf.h,v 1.2 2004/08/09 14:57:26 pefo Exp $ */
+/* $OpenBSD: memconf.h,v 1.3 2008/03/30 20:13:14 miod Exp $ */
/*
* Copyright (c) 1996 Per Fogelstrom
@@ -38,7 +38,9 @@ struct phys_mem_desc {
};
#ifdef _KERNEL
+#ifndef MAXMEMSEGS
#define MAXMEMSEGS 16
+#endif
extern struct phys_mem_desc mem_layout[];
#endif
diff --git a/sys/arch/mips64/include/vmparam.h b/sys/arch/mips64/include/vmparam.h
index 8c8283a1948..a785ab99e20 100644
--- a/sys/arch/mips64/include/vmparam.h
+++ b/sys/arch/mips64/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.13 2007/05/03 19:34:00 miod Exp $ */
+/* $OpenBSD: vmparam.h,v 1.14 2008/03/30 20:13:14 miod Exp $ */
/* $NetBSD: vmparam.h,v 1.5 1994/10/26 21:10:10 cgd Exp $ */
/*
@@ -88,7 +88,9 @@
#define SHMMAXPGS 8192 /* 8mb */
#endif
+#ifndef VM_PHYSSEG_MAX
#define VM_PHYSSEG_MAX 8 /* Max number of physical memory segments */
+#endif
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD
@@ -99,7 +101,9 @@
#define VM_MIN_KERNEL_ADDRESS ((vaddr_t)0xffffffffc0000000L)
#define VM_MAX_KERNEL_ADDRESS ((vaddr_t)0xfffffffffffff000L)
+#ifndef VM_NFREELIST
#define VM_NFREELIST 1
+#endif
#define VM_FREELIST_DEFAULT 0
/* virtual sizes (bytes) for various kernel submaps */