diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-06-09 17:34:34 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-06-09 17:35:53 +0200 |
commit | 5ebd8c371fb0c28dc14c4fc1f37cbfe9ce851297 (patch) | |
tree | 5ac8c5da11958f6ccc77e0413cceb6f2c0123838 | |
parent | 5c6c7e14131c7f0302b28053e6a77960acb679bd (diff) |
user32: Extend userland address space to 4G
glibc and hurd servers cope fine, and this allows to have more userland
memory for very large builds.
-rw-r--r-- | i386/include/mach/i386/vm_param.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/i386/include/mach/i386/vm_param.h b/i386/include/mach/i386/vm_param.h index 3e5c18c9..8853641b 100644 --- a/i386/include/mach/i386/vm_param.h +++ b/i386/include/mach/i386/vm_param.h @@ -67,19 +67,18 @@ /* User address spaces are 3GB each on a 32-bit kernel, starting at virtual and linear address 0. - On a 64-bit krenel we split the address space in half, with the + On a 64-bit kernel we split the address space in half, with the lower 128TB for the user address space and the upper 128TB for the kernel address space. On a 32-bit kernel 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. + space for the kernel. */ #define VM_MIN_ADDRESS (0ULL) #ifdef __x86_64__ #if defined(KERNEL) && defined(USER32) -#define VM_MAX_ADDRESS (0xc0000000UL) +#define VM_MAX_ADDRESS (0xfffff000ULL) #else /* defined(KERNEL) && defined(USER32) */ #define VM_MAX_ADDRESS (0x800000000000ULL) #endif /* defined(KERNEL) && defined(USER32) */ |