[adm5120] restore old patches for 2.6.21.5 kernel
[openwrt/svn-archive/archive.git] / target / linux / adm5120-2.6 / patches / 140-cmdline_hack.patch
1 diff -ur linux.old/arch/mips/kernel/head.S linux.dev/arch/mips/kernel/head.S
2 --- linux.old/arch/mips/kernel/head.S 2006-12-06 17:30:27.000000000 +0100
3 +++ linux.dev/arch/mips/kernel/head.S 2006-12-06 18:34:43.000000000 +0100
4 @@ -129,15 +129,20 @@
5 #endif
6 .endm
7
8 -
9 j kernel_entry
10 nop
11 -
12 + nop
13 +
14 /*
15 * Reserved space for exception handlers.
16 * Necessary for machines which link their kernels at KSEG0.
17 + * Use as temporary storage for the kernel command line, so that it
18 + * can be updated easily without having to relink the kernel.
19 */
20 - .align 10
21 +
22 +EXPORT(_image_cmdline)
23 + .ascii "CMDLINE:"
24 + .align 10
25
26 EXPORT(stext) # used for profiling
27 EXPORT(_stext)