summaryrefslogtreecommitdiffstats
path: root/sys/arm/include/vmparam.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm/include/vmparam.h')
-rw-r--r--sys/arm/include/vmparam.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/arm/include/vmparam.h b/sys/arm/include/vmparam.h
index 50c575b..94caeef 100644
--- a/sys/arm/include/vmparam.h
+++ b/sys/arm/include/vmparam.h
@@ -145,6 +145,14 @@
#define VM_KMEM_SIZE_SCALE (2)
#endif
+/*
+ * Ceiling on the size of the kmem submap: 60% of the kernel map.
+ */
+#ifndef VM_KMEM_SIZE_MAX
+#define VM_KMEM_SIZE_MAX ((vm_max_kernel_address - \
+ VM_MIN_KERNEL_ADDRESS + 1) * 3 / 5)
+#endif
+
#define MAXTSIZ (16*1024*1024)
#ifndef DFLDSIZ
#define DFLDSIZ (128*1024*1024)
OpenPOWER on IntegriCloud