From: Karl Lessard <klessard@sunrisetelecom.com>
To: linux-mips <linux-mips@linux-mips.org>
Subject: Patch for prom envp
Date: Thu, 14 Oct 2004 10:53:01 -0400 [thread overview]
Message-ID: <416E92CD.4020202@sunrisetelecom.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 150 bytes --]
Hi,
this small patch fix some heavy crashes when a board bootup and tries to
use the vector argument as the environnement variable.
Thanks,
Karl
[-- Attachment #2: prom-envp.patch --]
[-- Type: text/plain, Size: 1504 bytes --]
diff -urp linux-mips/arch/mips/au1000/pb1100/init.c linux/arch/mips/au1000/pb1100/init.c
--- linux-mips/arch/mips/au1000/pb1100/init.c Mon Nov 17 20:17:46 2003
+++ linux/arch/mips/au1000/pb1100/init.c Thu Oct 14 10:11:42 2004
@@ -53,7 +53,7 @@ void __init prom_init(void)
prom_argc = fw_arg0;
prom_argv = (char **) fw_arg1;
- prom_envp = (int *) fw_arg3;
+ prom_envp = (int *) fw_arg2;
mips_machgroup = MACH_GROUP_ALCHEMY;
mips_machtype = MACH_PB1100;
diff -urp linux-mips/arch/mips/ite-boards/ivr/init.c linux/arch/mips/ite-boards/ivr/init.c
--- linux-mips/arch/mips/ite-boards/ivr/init.c Mon Nov 17 20:17:46 2003
+++ linux/arch/mips/ite-boards/ivr/init.c Thu Oct 14 10:19:09 2004
@@ -60,7 +60,7 @@ void __init prom_init(void)
prom_argc = fw_arg0;
prom_argv = (char **) fw_arg1;
- prom_envp = (int *) fw_arg3;
+ prom_envp = (int *) fw_arg2;
mips_machgroup = MACH_GROUP_GLOBESPAN;
mips_machtype = MACH_IVR; /* Globespan's iTVC15 reference board */
diff -urp linux-mips/arch/mips/ite-boards/qed-4n-s01b/init.c linux/arch/mips/ite-boards/qed-4n-s01b/init.c
--- linux-mips/arch/mips/ite-boards/qed-4n-s01b/init.c Mon Nov 17 20:17:46 2003
+++ linux/arch/mips/ite-boards/qed-4n-s01b/init.c Thu Oct 14 10:19:33 2004
@@ -60,7 +60,7 @@ void __init prom_init(void)
prom_argc = fw_arg0;
prom_argv = (char **) fw_arg1;
- prom_envp = (int *) fw_arg3;
+ prom_envp = (int *) fw_arg2;
mips_machgroup = MACH_GROUP_ITE;
mips_machtype = MACH_QED_4N_S01B; /* ITE board name/number */
next reply other threads:[~2004-10-14 14:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-14 14:53 Karl Lessard [this message]
2004-10-14 15:04 ` Patch for prom envp Karl Lessard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=416E92CD.4020202@sunrisetelecom.com \
--to=klessard@sunrisetelecom.com \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox