Messages in this thread Patch in this message |  | | From | Jan Kratochvil <> | Subject | 2.1.* initrd init fix | Date | Sat, 2 Nov 1996 11:55:00 +0100 (MET) |
| |
Hi all!
What 'bout following (cosmetic) patch to prevent:
Nov 2 17:24:15 shortux linux: initrd overwritten (0xc0000000 < 0xc058dff4) - disabling it.
Here's the fix:
--- linux/arch/i386/kernel/setup.c-bug Sat Nov 2 17:26:45 1996 +++ linux/arch/i386/kernel/setup.c Sat Nov 2 17:27:31 1996 @@ -185,7 +185,7 @@ #ifdef CONFIG_BLK_DEV_INITRD if (LOADER_TYPE) { - initrd_start = INITRD_START + PAGE_OFFSET; + initrd_start = INITRD_START ? INITRD_START + PAGE_OFFSET : 0; initrd_end = initrd_start+INITRD_SIZE; if (initrd_end > memory_end) { printk("initrd extends beyond end of memory "
|  |