1
0

301-mips_image_cmdline_hack.patch 577 B

12345678910111213141516171819202122232425262728
  1. --- a/arch/mips/Kconfig
  2. +++ b/arch/mips/Kconfig
  3. @@ -988,6 +988,10 @@ config SYNC_R4K
  4. config MIPS_MACHINE
  5. def_bool n
  6. +config IMAGE_CMDLINE_HACK
  7. + bool "OpenWrt specific image command line hack"
  8. + default n
  9. +
  10. config NO_IOPORT_MAP
  11. def_bool n
  12. --- a/arch/mips/kernel/head.S
  13. +++ b/arch/mips/kernel/head.S
  14. @@ -80,6 +80,12 @@ FEXPORT(__kernel_entry)
  15. j kernel_entry
  16. #endif
  17. +#ifdef CONFIG_IMAGE_CMDLINE_HACK
  18. + .ascii "CMDLINE:"
  19. +EXPORT(__image_cmdline)
  20. + .fill 0x400
  21. +#endif /* CONFIG_IMAGE_CMDLINE_HACK */
  22. +
  23. __REF
  24. NESTED(kernel_entry, 16, sp) # kernel entry point