svn commit: r247610 - head/sys/arm/include
Andrew Turner
andrew at FreeBSD.org
Sat Mar 2 05:02:30 UTC 2013
Author: andrew
Date: Sat Mar 2 05:02:29 2013
New Revision: 247610
URL: http://svnweb.freebsd.org/changeset/base/247610
Log:
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
Modified:
head/sys/arm/include/vmparam.h
Modified: head/sys/arm/include/vmparam.h
==============================================================================
--- head/sys/arm/include/vmparam.h Sat Mar 2 03:23:14 2013 (r247609)
+++ head/sys/arm/include/vmparam.h Sat Mar 2 05:02:29 2013 (r247610)
@@ -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 */
More information about the svn-src-all
mailing list