Skip to contentSkip to conversation

PATCH: memory patch

parisc-linux Ryan Bradetich 1 participant 1 message Sep 3, 2000

lore
Share & tools
lore
#0 lore raw

Hello everyone,

I have a small patch that allows the parsic-linux kernel see all
the all the memory the PDC recognizes. This patch works fine
for me, and if no one has any objections, (ie. Does this need to be present for some models?) ... I'll commit it.

Thanks,

Ryan

Index: setup.c
===================================================================
RCS file: /home/cvs/parisc/linux-2.3/arch/parisc/kernel/setup.c,v retrieving revision 1.33

setup.c +1 -2
diff -u -p -r1.33 setup.c
@@ -282,8 +282,7 @@ void __init start_parisc(unsigned arg0, 
 	mtctl(ccr, 10);
 
 	mem_start = __pa(memory_start);
-#define MAX_MEM (128*1024*1024)
-	mem_max = (PAGE0->imm_max_mem > MAX_MEM ? MAX_MEM : PAGE0->imm_max_mem);
+	mem_max = PAGE0->imm_max_mem;
 
 	collect_cpuinfo(); // get all cpu & system-information for later use.
 	printk("CPU(s): %d x %s at %d.%06d MHz\n",