kernel: add linux 4.4 support
[openwrt.git] / target / linux / generic / patches-4.4 / 301-mips_image_cmdline_hack.patch
1 --- a/arch/mips/Kconfig
2 +++ b/arch/mips/Kconfig
3 @@ -1123,6 +1123,10 @@ config SYNC_R4K
4  config MIPS_MACHINE
5         def_bool n
6  
7 +config IMAGE_CMDLINE_HACK
8 +       bool "OpenWrt specific image command line hack"
9 +       default n
10 +
11  config NO_IOPORT_MAP
12         def_bool n
13  
14 --- a/arch/mips/kernel/head.S
15 +++ b/arch/mips/kernel/head.S
16 @@ -80,6 +80,12 @@ FEXPORT(__kernel_entry)
17         j       kernel_entry
18  #endif
19  
20 +#ifdef CONFIG_IMAGE_CMDLINE_HACK
21 +       .ascii  "CMDLINE:"
22 +EXPORT(__image_cmdline)
23 +       .fill   0x400
24 +#endif /* CONFIG_IMAGE_CMDLINE_HACK */
25 +
26         __REF
27  
28  NESTED(kernel_entry, 16, sp)                   # kernel entry point