aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches-3.3/0009-MIPS-lantiq-fix-cmdline-parsing.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2012-08-03 08:53:02 +0000
committerJohn Crispin <blogic@openwrt.org>2012-08-03 08:53:02 +0000
commitce06d1cf7baeb10aa3ffef90f51ee4c3a0b81a46 (patch)
tree81a9746583b2c1c212f8c35a51d07d9353080561 /target/linux/lantiq/patches-3.3/0009-MIPS-lantiq-fix-cmdline-parsing.patch
parenta8facfad2aeb3c4eb9c5ee01f646fefd3f992351 (diff)
downloadupstream-ce06d1cf7baeb10aa3ffef90f51ee4c3a0b81a46.tar.gz
upstream-ce06d1cf7baeb10aa3ffef90f51ee4c3a0b81a46.tar.bz2
upstream-ce06d1cf7baeb10aa3ffef90f51ee4c3a0b81a46.zip
[lantiq] cleanup patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32953 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches-3.3/0009-MIPS-lantiq-fix-cmdline-parsing.patch')
-rw-r--r--target/linux/lantiq/patches-3.3/0009-MIPS-lantiq-fix-cmdline-parsing.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/target/linux/lantiq/patches-3.3/0009-MIPS-lantiq-fix-cmdline-parsing.patch b/target/linux/lantiq/patches-3.3/0009-MIPS-lantiq-fix-cmdline-parsing.patch
deleted file mode 100644
index acd0988c23..0000000000
--- a/target/linux/lantiq/patches-3.3/0009-MIPS-lantiq-fix-cmdline-parsing.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 3ea88c1089b88b4860919a9cdea0cc5da4d09e2c Mon Sep 17 00:00:00 2001
-From: John Crispin <blogic@openwrt.org>
-Date: Fri, 12 Aug 2011 16:27:38 +0200
-Subject: [PATCH 09/70] MIPS: lantiq: fix cmdline parsing
-
-The code tested if the KSEG1 mapped address of argv was != 0. We need to use
-CPHYSADDR instead to make the conditional actually work.
-
-Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
-Signed-off-by: John Crispin <blogic@openwrt.org>
----
- arch/mips/lantiq/prom.c | 6 ++++--
- 1 files changed, 4 insertions(+), 2 deletions(-)
-
---- a/arch/mips/lantiq/prom.c
-+++ b/arch/mips/lantiq/prom.c
-@@ -49,10 +49,12 @@ static void __init prom_init_cmdline(voi
- char **argv = (char **) KSEG1ADDR(fw_arg1);
- int i;
-
-+ arcs_cmdline[0] = '\0';
-+
- for (i = 0; i < argc; i++) {
-- char *p = (char *) KSEG1ADDR(argv[i]);
-+ char *p = (char *) KSEG1ADDR(argv[i]);
-
-- if (p && *p) {
-+ if (CPHYSADDR(p) && *p) {
- strlcat(arcs_cmdline, p, sizeof(arcs_cmdline));
- strlcat(arcs_cmdline, " ", sizeof(arcs_cmdline));
- }