summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2013-03-02 05:02:29 +0000
committerandrew <andrew@FreeBSD.org>2013-03-02 05:02:29 +0000
commita94abfa9f501e5affb2adf41751ae19fe18a1b36 (patch)
tree3489e6f02d8c6cd7264016cdf91d9cc969ef9e8a
parent6a195ffa935cec2598eac6237701f35b64fdeb32 (diff)
downloadFreeBSD-src-a94abfa9f501e5affb2adf41751ae19fe18a1b36.zip
FreeBSD-src-a94abfa9f501e5affb2adf41751ae19fe18a1b36.tar.gz
Move some virtual memory constants to the top of the file where they are on
other architectures [1]. While here: - Remove an unused and commented out include. - Add a comment describing the file that other copies have. - Fix the style of the defines and add a comment on what each one is. Suggested by: [1] alc
-rw-r--r--sys/arm/include/vmparam.h46
1 files changed, 25 insertions, 21 deletions
diff --git a/sys/arm/include/vmparam.h b/sys/arm/include/vmparam.h
index aec94f8..9765b34 100644
--- a/sys/arm/include/vmparam.h
+++ b/sys/arm/include/vmparam.h
@@ -34,9 +34,32 @@
#ifndef _MACHINE_VMPARAM_H_
#define _MACHINE_VMPARAM_H_
+/*
+ * Machine dependent constants for ARM.
+ */
+
+/*
+ * Virtual memory related constants, all in bytes
+ */
+#ifndef MAXTSIZ
+#define MAXTSIZ (64UL*1024*1024) /* max text size */
+#endif
+#ifndef DFLDSIZ
+#define DFLDSIZ (128UL*1024*1024) /* initial data size limit */
+#endif
+#ifndef MAXDSIZ
+#define MAXDSIZ (512UL*1024*1024) /* max data size */
+#endif
+#ifndef DFLSSIZ
+#define DFLSSIZ (2UL*1024*1024) /* initial stack size limit */
+#endif
+#ifndef MAXSSIZ
+#define MAXSSIZ (8UL*1024*1024) /* max stack size */
+#endif
+#ifndef SGROWSIZ
+#define SGROWSIZ (128UL*1024) /* amount to grow stack */
+#endif
-/*#include <arm/arm32/vmparam.h>
-*/
/*
* Address space constants
*/
@@ -153,25 +176,6 @@
VM_MIN_KERNEL_ADDRESS + 1) * 2 / 5)
#endif
-#ifndef MAXTSIZ
-#define MAXTSIZ (64*1024*1024)
-#endif
-#ifndef DFLDSIZ
-#define DFLDSIZ (128*1024*1024)
-#endif
-#ifndef MAXDSIZ
-#define MAXDSIZ (512*1024*1024)
-#endif
-#ifndef DFLSSIZ
-#define DFLSSIZ (2*1024*1024)
-#endif
-#ifndef MAXSSIZ
-#define MAXSSIZ (8*1024*1024)
-#endif
-#ifndef SGROWSIZ
-#define SGROWSIZ (128*1024)
-#endif
-
#ifdef ARM_USE_SMALL_ALLOC
#define UMA_MD_SMALL_ALLOC
#endif /* ARM_USE_SMALL_ALLOC */
OpenPOWER on IntegriCloud