diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-08-28 18:32:30 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-08-28 18:32:30 +0200 |
commit | 3d4e83e3e22b16aeeab0c75c290a3846d1ea99f7 (patch) | |
tree | c4a83d2ff36118a58062f9efd7a5cfbd9df21f4f /i386/i386/vm_param.h | |
parent | ce6698ce59c7524986324469c679d564a52099ba (diff) |
Rework memory mapping reservation
* i386/i386/vm_param.h (VM_KERNEL_MAP_SIZE): Define to 192MiB.
* i386/i386at/model_dep.c (mem_size_init): Use VM_KERNEL_MAP_SIZE instead of
1/6 factor.
* i386/intel/pmap.c (morevm): Remove.
(pmap_bootstrap): Use VM_KERNEL_MAP_SIZE instead of morevm.
Diffstat (limited to 'i386/i386/vm_param.h')
-rw-r--r-- | i386/i386/vm_param.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/i386/i386/vm_param.h b/i386/i386/vm_param.h index 95df604..b515a9e 100644 --- a/i386/i386/vm_param.h +++ b/i386/i386/vm_param.h @@ -27,7 +27,7 @@ #include <mach/vm_param.h> #include <xen/public/xen.h> -/* The kernel address space is 1GB, starting at virtual address 0. */ +/* The kernel address space is usually 1GB, usually starting at virtual address 0. */ #ifdef MACH_XEN #define VM_MIN_KERNEL_ADDRESS 0x20000000UL #else /* MACH_XEN */ @@ -45,6 +45,9 @@ #define VM_MAX_KERNEL_ADDRESS (LINEAR_MAX_KERNEL_ADDRESS - LINEAR_MIN_KERNEL_ADDRESS + VM_MIN_KERNEL_ADDRESS) #endif /* MACH_XEN */ +/* Reserve mapping room for kmem_suballoc calls. */ +#define VM_KERNEL_MAP_SIZE (192 * 1024 * 1024) + /* The kernel virtual address space is actually located at high linear addresses. This is the kernel address range in linear addresses. */ |