diff options
-rw-r--r-- | i386/i386/vm_param.h | 4 | ||||
-rw-r--r-- | i386/include/mach/i386/vm_param.h | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/i386/i386/vm_param.h b/i386/i386/vm_param.h index 96fc8ba..ba8e584 100644 --- a/i386/i386/vm_param.h +++ b/i386/i386/vm_param.h @@ -28,12 +28,12 @@ /* The kernel address space is 1GB, starting at virtual address 0. */ #define VM_MIN_KERNEL_ADDRESS ((vm_offset_t) 0x00000000) -#define VM_MAX_KERNEL_ADDRESS ((vm_offset_t) 0x40000000) +#define VM_MAX_KERNEL_ADDRESS ((vm_offset_t) (LINEAR_MAX_KERNEL_ADDRESS - LINEAR_MIN_KERNEL_ADDRESS)) /* The kernel virtual address space is actually located at high linear addresses. This is the kernel address range in linear addresses. */ -#define LINEAR_MIN_KERNEL_ADDRESS ((vm_offset_t) 0xc0000000) +#define LINEAR_MIN_KERNEL_ADDRESS ((vm_offset_t) VM_MAX_ADDRESS) #define LINEAR_MAX_KERNEL_ADDRESS ((vm_offset_t) 0xffffffff) #define KERNEL_STACK_SIZE (1*I386_PGBYTES) 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_ */ |