Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [patch] bogus ramdisk sanity check on ip27
@ 2003-02-20  0:38 Andrew Clausen
  2003-02-21  3:12 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Clausen @ 2003-02-20  0:38 UTC (permalink / raw)
  To: Linux-MIPS; +Cc: ralf

Hi all,

There is currently a check that the ramdisk image resides at a sane
memory address, below "max_pfn".  However, max_pfn isn't initialized
(and apparently isn't relevant) for ip27.  The only assignments to
max_pfn lie inside #ifndef CONFIG_SGI_IP27.

Therefore, this test is bogus, so here's a patch to
#ifndef CONFIG_SGI_IP27 it.

This patch applies cleanly on 2.4.x and 2.5.x (at a different offset).

Cheers,
Andrew

diff -u -r1.31.2.25 setup.c
--- arch/mips64/kernel/setup.c	22 Jan 2003 05:11:38 -0000	1.31.2.25
+++ arch/mips64/kernel/setup.c	20 Feb 2003 00:05:41 -0000
@@ -358,6 +358,8 @@
 		printk("Initial ramdisk at: 0x%p (%lu bytes)\n",
 		       (void *)initrd_start,
 		       initrd_size);
+/* FIXME: is this right? */
+#ifndef CONFIG_SGI_IP27
 		if (CPHYSADDR(initrd_end) > PFN_PHYS(max_pfn)) {
 			printk("initrd extends beyond end of memory "
 			       "(0x%p > 0x%p)\ndisabling initrd\n",
@@ -365,6 +367,7 @@
 			       (void *)PFN_PHYS(max_pfn));
 			initrd_start = 0;
 		}
+#endif /* !CONFIG_SGI_IP27 */
 	}
 #endif
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-21  3:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-20  0:38 [patch] bogus ramdisk sanity check on ip27 Andrew Clausen
2003-02-21  3:12 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox