summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-05-16 01:30:30 +0000
committerian <ian@FreeBSD.org>2014-05-16 01:30:30 +0000
commit8e2dd9b5e30117e2cab1d46c1cc0c2dfb4b7647e (patch)
tree35fa7519fc913330e83ec8d0a5549451f541f2e2 /sys/ia64
parente58449eb7bc00b546bc709cb6348a17b98b8e5e6 (diff)
downloadFreeBSD-src-8e2dd9b5e30117e2cab1d46c1cc0c2dfb4b7647e.zip
FreeBSD-src-8e2dd9b5e30117e2cab1d46c1cc0c2dfb4b7647e.tar.gz
MFC r257854 (discussed with alc@)
As of r257209, all architectures have defined VM_KMEM_SIZE_SCALE. In other words, every architecture is now auto-sizing the kmem arena. This revision changes kmeminit() so that the definition of VM_KMEM_SIZE_SCALE becomes mandatory and the definition of VM_KMEM_SIZE becomes optional. Replace or eliminate all existing definitions of VM_KMEM_SIZE. With auto-sizing enabled, VM_KMEM_SIZE effectively became an alternate spelling for VM_KMEM_SIZE_MIN on most architectures. Use VM_KMEM_SIZE_MIN for clarity.
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/include/vmparam.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/ia64/include/vmparam.h b/sys/ia64/include/vmparam.h
index 1fda472..edae4c4 100644
--- a/sys/ia64/include/vmparam.h
+++ b/sys/ia64/include/vmparam.h
@@ -189,19 +189,11 @@
#define USRSTACK VM_MAXUSER_ADDRESS
#define IA64_BACKINGSTORE (USRSTACK - (2 * MAXSSIZ) - PAGE_SIZE)
-/* virtual sizes (bytes) for various kernel submaps */
-#ifndef VM_KMEM_SIZE
-#define VM_KMEM_SIZE (12 * 1024 * 1024)
-#endif
-
/*
- * How many physical pages per KVA page allocated.
- * min(max(max(VM_KMEM_SIZE, Physical memory/VM_KMEM_SIZE_SCALE),
- * VM_KMEM_SIZE_MIN), VM_KMEM_SIZE_MAX)
- * is the total KVA space allocated for kmem_map.
+ * How many physical pages per kmem arena virtual page.
*/
#ifndef VM_KMEM_SIZE_SCALE
-#define VM_KMEM_SIZE_SCALE (4) /* XXX 8192 byte pages */
+#define VM_KMEM_SIZE_SCALE (4)
#endif
/* initial pagein size of beginning of executable file */
OpenPOWER on IntegriCloud