summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-14 10:15:50 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-14 10:15:50 +0200
commitfa6c711d2e8f696457ee1a12e49f413b98a175db (patch)
tree9e68a8b8f1db891d78f8b88e74161f3c6a0a7f49 /i386
parenta72523c6570b17311babc105edc7105bc0dce4aa (diff)
Update constants to nowadays standards
kern/zalloc.c (zone_map_size): Increase to 64MiB. i386/i386at/model_dep.c (mem_size_init): Reduce cap to 1/6 of memory space to save room for zalloc area. linux/src/drivers/block/ide.h (INITIAL_MULT_COUNT): Set to 16. vm/vm_map.h (VM_MAP_COPY_PAGE_LIST_MAX): Set to 64. vm/vm_object.c (vm_object_cached_max): Set to 4000.
Diffstat (limited to 'i386')
-rw-r--r--i386/i386at/model_dep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index b9fb7c0..b98a4d8 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -233,10 +233,10 @@ mem_size_init(void)
printf("AT386 boot: physical memory from 0x%x to 0x%x\n",
phys_first_addr, phys_last_addr);
- /* Reserve 1/16 of the memory address space for virtual mappings.
+ /* Reserve 1/6 of the memory address space for virtual mappings.
* Yes, this loses memory. Blame i386. */
- if (phys_last_addr > (VM_MAX_KERNEL_ADDRESS / 16) * 15) {
- phys_last_addr = (VM_MAX_KERNEL_ADDRESS / 16) * 15;
+ if (phys_last_addr > (VM_MAX_KERNEL_ADDRESS / 6) * 5) {
+ phys_last_addr = (VM_MAX_KERNEL_ADDRESS / 6) * 5;
printf("Truncating memory size to %dMiB\n", (phys_last_addr - phys_first_addr) / (1024 * 1024));
}