* Patch: don't report rd found when none is there
@ 2001-08-23 7:51 Guido Guenther
2001-08-23 12:31 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Guido Guenther @ 2001-08-23 7:51 UTC (permalink / raw)
To: linux-mips; +Cc: Ralf Baechle
[-- Attachment #1: Type: text/plain, Size: 383 bytes --]
The current code in a/m/k/setup.c assigns __rd_start & __rd_end to
initrd_start and initrd_end even when no ramdisk was added to the kernel
image. This gives an "Initial ramdisk at:...." message even though no
ramdisk is there. Attached patch fixes this. It furthermore prevents
initrd_{start,end} being overriden(in case it gets set somewhere in the
board specific code).
-- Guido
[-- Attachment #2: rd_found_2001-08-23.diff --]
[-- Type: text/plain, Size: 636 bytes --]
--- arch/mips/kernel/setup.c.orig Thu Aug 23 09:36:31 2001
+++ arch/mips/kernel/setup.c Thu Aug 23 09:36:40 2001
@@ -725,8 +719,10 @@
#ifdef CONFIG_BLK_DEV_INITRD
/* Board specific code should have set up initrd_start and initrd_end */
ROOT_DEV = MKDEV(RAMDISK_MAJOR, 0);
- initrd_start = (unsigned long)&__rd_start;
- initrd_end = (unsigned long)&__rd_end;
+ if( __rd_start != __rd_end ) {
+ initrd_start = (unsigned long)&__rd_start;
+ initrd_end = (unsigned long)&__rd_end;
+ }
initrd_below_start_ok = 1;
if (initrd_start) {
unsigned long initrd_size = ((unsigned char *)initrd_end) - ((unsigned char *)initrd_start);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Patch: don't report rd found when none is there
2001-08-23 7:51 Patch: don't report rd found when none is there Guido Guenther
@ 2001-08-23 12:31 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2001-08-23 12:31 UTC (permalink / raw)
To: linux-mips
On Thu, Aug 23, 2001 at 09:51:33AM +0200, Guido Guenther wrote:
> The current code in a/m/k/setup.c assigns __rd_start & __rd_end to
> initrd_start and initrd_end even when no ramdisk was added to the kernel
> image. This gives an "Initial ramdisk at:...." message even though no
> ramdisk is there. Attached patch fixes this. It furthermore prevents
> initrd_{start,end} being overriden(in case it gets set somewhere in the
> board specific code).
Applied,
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-23 12:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-23 7:51 Patch: don't report rd found when none is there Guido Guenther
2001-08-23 12:31 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox