Re: 2.3.22 CONFIG_BLK_DEV_INITRD/setup.c:622: `memory_end' undeclared

Bruce Tenison (btenison@dibbs.net)
Sun, 17 Oct 1999 17:24:48 -0500 (CDT)


Someone may have responded to this, but I had the same problem. Here's
how I fixed it:

diff -u --recursive linux-2.3.23/arch/i386/kernel/setup.c linux-2.3.23.bt/arch/i386/kernel/setup.c
--- linux-2.3.23/arch/i386/kernel/setup.c Sun Oct 17 17:18:18 1999
+++ linux-2.3.23.bt/arch/i386/kernel/setup.c Sun Oct 17 17:15:27 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, (unsigned long) memory_end_p);
initrd_start = 0;
}
}

-
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/