summaryrefslogtreecommitdiff
path: root/i386/i386at
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-14 01:13:10 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-14 01:13:10 +0200
commit0f7b1d4d0c4672aceb912dabd60dee1f40396e6f (patch)
treecbf739ee5764501b3427b9b17f6111ac07bd20ce /i386/i386at
parent04519af27ba15ea756f621d278919e2e3b660dfb (diff)
Revert spurious part of 909c941d
Diffstat (limited to 'i386/i386at')
-rw-r--r--i386/i386at/model_dep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index 741726d..b9fb7c0 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -235,8 +235,8 @@ mem_size_init(void)
/* Reserve 1/16 of the memory address space for virtual mappings.
* Yes, this loses memory. Blame i386. */
- if (phys_last_addr > (VM_MAX_KERNEL_ADDRESS / 8) * 7) {
- phys_last_addr = (VM_MAX_KERNEL_ADDRESS / 8) * 7;
+ if (phys_last_addr > (VM_MAX_KERNEL_ADDRESS / 16) * 15) {
+ phys_last_addr = (VM_MAX_KERNEL_ADDRESS / 16) * 15;
printf("Truncating memory size to %dMiB\n", (phys_last_addr - phys_first_addr) / (1024 * 1024));
}