1
0

301-mips_image_cmdline_hack.patch 901 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. From: John Crispin <john@phrozen.org>
  2. Subject: hack: kernel: add generic image_cmdline hack to MIPS targets
  3. lede-commit: d59f5b3a987a48508257a0ddbaeadc7909f9f976
  4. Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
  5. ---
  6. arch/mips/Kconfig | 4 ++++
  7. arch/mips/kernel/head.S | 6 ++++++
  8. 2 files changed, 10 insertions(+)
  9. --- a/arch/mips/Kconfig
  10. +++ b/arch/mips/Kconfig
  11. @@ -1164,6 +1164,10 @@ config SYNC_R4K
  12. config MIPS_MACHINE
  13. def_bool n
  14. +config IMAGE_CMDLINE_HACK
  15. + bool "libreCMC specific image command line hack"
  16. + default n
  17. +
  18. config NO_IOPORT_MAP
  19. def_bool n
  20. --- a/arch/mips/kernel/head.S
  21. +++ b/arch/mips/kernel/head.S
  22. @@ -79,6 +79,12 @@ FEXPORT(__kernel_entry)
  23. j kernel_entry
  24. #endif
  25. +#ifdef CONFIG_IMAGE_CMDLINE_HACK
  26. + .ascii "CMDLINE:"
  27. +EXPORT(__image_cmdline)
  28. + .fill 0x400
  29. +#endif /* CONFIG_IMAGE_CMDLINE_HACK */
  30. +
  31. __REF
  32. NESTED(kernel_entry, 16, sp) # kernel entry point