diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-10-26 00:31:50 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-10-26 00:34:57 +0100 |
commit | 1f9a3b0584987f05b7e8560ff6ed59a3d78113e0 (patch) | |
tree | a3f4343d3f1fffd1e2e722335672b8a693758691 /i386/include | |
parent | 54efb9945a023fd164fadbf87eedb9cc8234f4cd (diff) |
Make tuning VM_MAX_ADDRESS trivial
* i386/i386/vm_param.h (LINEAR_MIN_KERNEL_ADDRESS): Set to
VM_MAX_ADDRESS instead of hardcoding to 0xc0000000.
(VM_MAX_KERNEL_ADDRESS): Set to LINEAR_MAX_KERNEL_ADDRESS -
LINEAR_MIN_KERNEL_ADDRESS instead of hardcoding to 0x40000000.
* i386/include/mach/i386/vm_param.h: Document how it may be tuned.
Diffstat (limited to 'i386/include')
-rw-r--r-- | i386/include/mach/i386/vm_param.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/i386/include/mach/i386/vm_param.h b/i386/include/mach/i386/vm_param.h index a6b1efd..e3cb2e4 100644 --- a/i386/include/mach/i386/vm_param.h +++ b/i386/include/mach/i386/vm_param.h @@ -66,8 +66,13 @@ #define i386_trunc_page(x) (((unsigned)(x)) & ~(I386_PGBYTES-1)) /* User address spaces are 3GB each, - starting at virtual and linear address 0. */ + starting at virtual and linear address 0. + + VM_MAX_ADDRESS can be reduced to leave more space for the kernel, but must + not be increased to more than 3GB as glibc and hurd servers would not cope + with that. + */ #define VM_MIN_ADDRESS ((vm_offset_t) 0) -#define VM_MAX_ADDRESS ((vm_offset_t) 0xc0000000) +#define VM_MAX_ADDRESS ((vm_offset_t) 0x80000000) #endif /* _MACH_I386_VM_PARAM_H_ */ |