[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Crosshurd and RAM



Hello,

Ok, making the zalloc area bigger needs more virtual memory, the
attached patch should fix it.

Samuel
Index: b/i386/i386at/model_dep.c
===================================================================
--- a/i386/i386at/model_dep.c	10 Nov 2008 15:18:47 -0000	1.9.2.19
+++ b/i386/i386at/model_dep.c	11 Jun 2009 00:32:30 -0000
@@ -231,10 +232,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/8 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 / 8) * 7)
+		phys_last_addr = (VM_MAX_KERNEL_ADDRESS / 8) * 7;
 
 	phys_first_addr = round_page(phys_first_addr);
 	phys_last_addr = trunc_page(phys_last_addr);

Reply to: