bug in linux-2.3.22/arch/i386/kernel/setup.c

Heinz Mauelshagen (mauelsha@ez-darmstadt.telekom.de)
Sun, 24 Oct 1999 14:40:18 METDST


The following patch is necessary to compile 2.3.22 with initial ram
disk support.

Regards,
Heinz

--- linux-2.3.22/arch/i386/kernel/setup.c.orig Fri Oct 15 20:49:37 1999
+++ linux-2.3.22/arch/i386/kernel/setup.c Sun Oct 24 14:17:40 1999
@@ -619,10 +619,10 @@
if (LOADER_TYPE) {
initrd_start = INITRD_START ? INITRD_START + PAGE_OFFSET : 0;
initrd_end = initrd_start+INITRD_SIZE;
- if (initrd_end > memory_end) {
+ if (initrd_end > *memory_end_p) {
printk("initrd extends beyond end of memory "
"(0x%08lx > 0x%08lx)\ndisabling initrd\n",
- initrd_end,memory_end);
+ initrd_end,*memory_end_p);
initrd_start = 0;
}
}

--

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Systemmanagement CS-TS T-Nova Entwicklungszentrum Darmstadt Heinz Mauelshagen Otto-Roehm-Strasse 71c Senior Systems Engineer Postfach 10 05 41 64205 Darmstadt mge@ez-darmstadt.telekom.de Germany +49 6151 886-425 FAX-386 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/