__early_param for v850
PATCH 21/22 __early_param for v850
- Remove saved_command_line (and saving of the command line).
- Call parse_early_options
---
linux-2.6-early_setup-trini/arch/v850/kernel/setup.c | 5 +---- linux-2.6-early_setup-trini/arch/v850/kernel/vmlinux.lds.S | 5 +++++ 2 files changed, 6 insertions(+), 4 deletions(-)
arch/v850/kernel/setup.c renamed from arch/v850/kernel/setup.c~v850 +1 -4
@@ -41,7 +41,6 @@ extern char _root_fs_image_end __attribuchar command_line[512 ]; -char saved_command_line[512 ];/* Memory not used by the kernel. */ static unsigned long total_ram_pages;
@@ -61,10 +60,8 @@ void set_mem_root (void *addr, size_t levoid __init setup_arch (char **cmdline) { -/* Keep a copy of command line */ *cmdline = command_line; -memcpy (saved_command_line, command_line,sizeof saved_command_line); - saved_command_line[sizeof saved_command_line -1 ] ='\0' ; +parse_early_options (cmdline_p);console_verbose ();
arch/v850/kernel/vmlinux.lds.S renamed from arch/v850/kernel/vmlinux.lds.S~v850 +5 -0
@@ -109,6 +109,11 @@ *(.init.setup) /* 2.5 convention */ \ *(.setup.init) /* 2.4 convention */ \ ___setup_end = . ; \ + + __early_begin = .; + *(__early_param) + __early_end = .; + ___start___param = . ; \ *(__param) \ ___stop___param = . ; \
_