1 --- a/arch/mips/Kconfig
2 +++ b/arch/mips/Kconfig
3 @@ -770,6 +770,9 @@ config SYNC_R4K
13 --- a/arch/mips/kernel/head.S
14 +++ b/arch/mips/kernel/head.S
15 @@ -143,6 +143,15 @@ FEXPORT(__kernel_entry)
19 +#ifdef CONFIG_PROM_EMU
20 +EXPORT(prom_emu_argv)
22 + .word prom_emu_cmdline
24 +EXPORT(prom_emu_cmdline)
30 NESTED(kernel_entry, 16, sp) # kernel entry point
31 @@ -183,6 +192,19 @@ NESTED(kernel_entry, 16, sp) # kernel
35 +#ifdef CONFIG_PROM_EMU
36 + PTR_LA t0, prom_emu_cmdline
41 + PTR_LA a1, prom_emu_argv
46 +#endif /* CONFIG_PROM_EMU */
48 LONG_S a0, fw_arg0 # firmware arguments