lkml.org 
[lkml]   [1996]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject2.1.* initrd init fix
Date
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 "
\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.014 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site