linux-mips
[Top] [All Lists]

[PATCH] Fix MIPSsim booting from NFS root

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: [PATCH] Fix MIPSsim booting from NFS root
From: Thiemo Seufer <ths@networkno.de>
Date: Sun, 14 Oct 2007 17:11:06 +0100
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.16 (2007-06-11)
MIPSsim probably doesn't have any sort of environment, but writing
a zero in it kills even the compiled in command line. This prevents
booting via NFS root.

Signed-Off-By: Thiemo Seufer <ths@networkno.de>

diff --git a/arch/mips/mipssim/sim_cmdline.c b/arch/mips/mipssim/sim_cmdline.c
index c63021a..74240e1 100644
--- a/arch/mips/mipssim/sim_cmdline.c
+++ b/arch/mips/mipssim/sim_cmdline.c
@@ -28,8 +28,5 @@ char * __init prom_getcmdline(void)
 
 void  __init prom_init_cmdline(void)
 {
-       char *cp;
-       cp = arcs_cmdline;
-       /* Get boot line from environment? */
-       *cp = '\0';
+       /* XXX: Get boot line from environment? */
 }

<Prev in Thread] Current Thread [Next in Thread>