m68k: generalize uboot command line support
Subsystems (2)
Greg Ungerer
maintainerPATCH 1/1 m68k: generalize uboot command line support
The uboot command line support needs to be used by both MMU and no-MMU setups, but currently we only have the code in the no-MMU code paths. Move the uboot command line processing code into its own file. Add appropriate calls to it from both the MMU and no-MMU arch setup code.
--- arch/m68k/include/asm/bootinfo.h | 6 +++ arch/m68k/kernel/Makefile | 1 + arch/m68k/kernel/setup_mm.c | 1 + arch/m68k/kernel/setup_no.c | 81 +---------------------------- arch/m68k/kernel/uboot.c | 107 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 117 insertions(+), 79 deletions(-) create mode 100644 arch/m68k/kernel/uboot.c
arch/m68k/include/asm/bootinfo.h +6 -0
@@ -22,6 +22,12 @@ extern void save_bootinfo(const struct bi_record *bi);static inline void save_bootinfo (const struct bi_record *bi) {}#endif +#ifdef CONFIG_UBOOT +void process_uboot_commandline (char *commandp,int size); +#else +static inline void process_uboot_commandline (char *commandp,int size) {} +#endif +#endif /* __ASSEMBLY__ */
arch/m68k/kernel/Makefile +1 -0
@@ -24,6 +24,7 @@ obj-$(CONFIG_HAS_DMA) += dma.o obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o obj-$(CONFIG_BOOTINFO_PROC) += bootinfo_proc.o +obj-$(CONFIG_UBOOT) += uboot.o obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
arch/m68k/kernel/setup_mm.c +1 -0
@@ -274,6 +274,7 @@ void __init setup_arch(char **cmdline_p)strncpy (m68k_command_line,CONFIG_BOOTPARAM_STRING ,CL_SIZE ); m68k_command_line[CL_SIZE -1 ] =0 ;#endif /* CONFIG_BOOTPARAM */ +process_uboot_commandline (&m68k_command_line[0 ],CL_SIZE ); *cmdline_p = m68k_command_line;memcpy (boot_command_line, *cmdline_p,CL_SIZE );
arch/m68k/kernel/setup_no.c +2 -79
99 lines not on this page · raw message
arch/m68k/kernel/uboot.c new file +107 -0
107 lines not on this page · raw message
Signature · 1 line
1.9.1
Hi Greg,
Quoted 6 lines · Greg Ungerer
The uboot command line support needs to be used by both MMU and no-MMU setups, but currently we only have the code in the no-MMU code paths. Move the uboot command line processing code into its own file. Add appropriate calls to it from both the MMU and no-MMU arch setup code.
Signed-off-by Greg Ungerer <[email protected]>
If you want me to take this through the m68k tree instead, just let me know. Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Greg Ungerer
maintainerHi Geert,
Quoted 8 lines · Geert Uytterhoeven
Hi Greg,
Quoted 5 lines · Greg Ungerer
The uboot command line support needs to be used by both MMU and no-MMU setups, but currently we only have the code in the no-MMU code paths. Move the uboot command line processing code into its own file. Add appropriate calls to it from both the MMU and no-MMU arch setup code.
Quoted 6 lines
Quoted 1 line
Signed-off-by Greg Ungerer <[email protected]>If you want me to take this through the m68k tree instead, just let me know. Thanks!
Thanks. I have a few things queued (with the ColdFire 54411 MMU changes) so I don't mind taking this one too.
Regards
Greg