mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 15/22] __early_param for ppc64
@ 2004-03-25  0:00 trini
  0 siblings, 0 replies; only message in thread
From: trini @ 2004-03-25  0:00 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, paulus


CC: Paul Mackerras <paulus@samba.org>
- Remove saved_command_line (and saving of the command line).
- Call parse_early_options


---

 include/asm-ppc64/setup.h                                   |    0 
 linux-2.6-early_setup-trini/arch/ppc64/kernel/setup.c       |    4 +---
 linux-2.6-early_setup-trini/arch/ppc64/kernel/vmlinux.lds.S |    5 +++++
 3 files changed, 6 insertions(+), 3 deletions(-)

diff -puN arch/ppc64/kernel/setup.c~ppc64 arch/ppc64/kernel/setup.c
--- linux-2.6-early_setup/arch/ppc64/kernel/setup.c~ppc64	2004-03-24 16:15:08.671235087 -0700
+++ linux-2.6-early_setup-trini/arch/ppc64/kernel/setup.c	2004-03-24 16:15:08.679233286 -0700
@@ -80,7 +80,6 @@ unsigned long decr_overclock_proc0_set =
 
 int powersave_nap;
 
-char saved_command_line[COMMAND_LINE_SIZE];
 unsigned char aux_device_present;
 
 void parse_cmd_line(unsigned long r3, unsigned long r4, unsigned long r5,
@@ -619,9 +618,8 @@ void __init setup_arch(char **cmdline_p)
 	init_mm.end_data = (unsigned long) _edata;
 	init_mm.brk = klimit;
 	
-	/* Save unparsed command line copy for /proc/cmdline */
-	strlcpy(saved_command_line, cmd_line, sizeof(saved_command_line));
 	*cmdline_p = cmd_line;
+	parse_early_options(cmdline_p);
 
 	/* set up the bootmem stuff with available memory */
 	do_init_bootmem();
diff -puN arch/ppc64/kernel/vmlinux.lds.S~ppc64 arch/ppc64/kernel/vmlinux.lds.S
--- linux-2.6-early_setup/arch/ppc64/kernel/vmlinux.lds.S~ppc64	2004-03-24 16:15:08.673234637 -0700
+++ linux-2.6-early_setup-trini/arch/ppc64/kernel/vmlinux.lds.S	2004-03-24 16:15:08.680233061 -0700
@@ -59,6 +59,11 @@ SECTIONS
 	*(.init.setup)
 	__setup_end = .;
 	}
+  __early_param : {
+	__early_begin = .;
+	*(__early_param)
+	__early_end = .;
+	}
 
   __param : {
 	__start___param = .;
diff -puN include/asm-ppc64/machdep.h~ppc64 include/asm-ppc64/machdep.h
diff -puN include/asm-ppc64/setup.h~ppc64 include/asm-ppc64/setup.h

_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-25  0:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-25  0:00 [patch 15/22] __early_param for ppc64 trini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®