diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-07-19 10:24:16 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-07-19 10:24:16 +0000 |
commit | 34be0d067f2b11a020bcc01926a6b986f093ca92 (patch) | |
tree | c646addf4b9a4b496114e2bed53fcbbdfa300bb7 /target | |
parent | c7281e231018b41fd6ca5fdecc67a2d8cf66e141 (diff) | |
download | master-187ad058-34be0d067f2b11a020bcc01926a6b986f093ca92.tar.gz master-187ad058-34be0d067f2b11a020bcc01926a6b986f093ca92.tar.bz2 master-187ad058-34be0d067f2b11a020bcc01926a6b986f093ca92.zip |
Allow the redboot supplied command line to be append (#2089)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8049 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/atheros-2.6/files/arch/mips/atheros/prom.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/atheros-2.6/files/arch/mips/atheros/prom.c b/target/linux/atheros-2.6/files/arch/mips/atheros/prom.c index 489f309279..36d78b8109 100644 --- a/target/linux/atheros-2.6/files/arch/mips/atheros/prom.c +++ b/target/linux/atheros-2.6/files/arch/mips/atheros/prom.c @@ -27,6 +27,7 @@ void __init prom_init(void) { + char **argv; mips_machgroup = MACH_GROUP_ATHEROS; mips_machtype = -1; @@ -34,6 +35,9 @@ void __init prom_init(void) DO_AR5312(ar5312_prom_init();) DO_AR5315(ar5315_prom_init();) + argv = (char **)fw_arg1; + /* RedBoot desired command line is argv[1] */ + strcat(arcs_cmdline, argv[1]); } void __init prom_free_prom_memory(void) |