[PATCH 11/17] bootwrapper: Make set_cmdline non-static, and accept a const buffer.

Scott Wood scottwood at freescale.com
Sat Mar 17 04:28:57 EST 2007


This allows platform code to call set_cmdline to initialize
/chosen/bootargs with a command line passed by the bootloader.

Signed-off-by: Scott Wood <scottwood at freescale.com>
---
 arch/powerpc/boot/main.c |    2 +-
 arch/powerpc/boot/ops.h  |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/boot/main.c b/arch/powerpc/boot/main.c
index 8a60e13..506d7db 100644
--- a/arch/powerpc/boot/main.c
+++ b/arch/powerpc/boot/main.c
@@ -243,7 +243,7 @@ static void get_cmdline(char *buf, int size)
 		getprop(devp, "bootargs", buf, size);
 }
 
-static void set_cmdline(char *buf)
+void set_cmdline(const char *buf)
 {
 	void *devp;
 
diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h
index 64e5472..429ced1 100644
--- a/arch/powerpc/boot/ops.h
+++ b/arch/powerpc/boot/ops.h
@@ -83,6 +83,7 @@ int xlate_reg(void *node, int res, unsigned long *addr, unsigned long *size);
 void dt_set_memory(u64 start, u64 len, int ncells);
 void dt_set_cpu_clocks(u32 clock, u32 bus, u32 timebase);
 void dt_set_mac_addresses(u8 **mac_table, int num_addrs);
+void set_cmdline(const char *buf);
 
 static inline void *finddevice(const char *name)
 {
-- 
1.5.0.3




More information about the Linuxppc-dev mailing list