From 0f7b1d4d0c4672aceb912dabd60dee1f40396e6f Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 14 Oct 2009 01:13:10 +0200 Subject: Revert spurious part of 909c941d --- i386/i386at/model_dep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'i386/i386at') 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)); } -- cgit v1.2.3