diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2013-03-02 05:02:29 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2013-03-02 05:02:29 +0000 |
commit | e40f53aa44eb364936dec7c633c1a3ac044add9c (patch) | |
tree | 3489e6f02d8c6cd7264016cdf91d9cc969ef9e8a /sys | |
parent | 6f02c16b639099c4d9571c6d914d60b1fb15f160 (diff) | |
download | src-e40f53aa44eb364936dec7c633c1a3ac044add9c.tar.gz src-e40f53aa44eb364936dec7c633c1a3ac044add9c.zip |
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
Notes
Notes:
svn path=/head/; revision=247610
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arm/include/vmparam.h | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/sys/arm/include/vmparam.h b/sys/arm/include/vmparam.h index aec94f82325e..9765b34abbd0 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 */ |