diff options
author | mostrows@watson.ibm.com <mostrows@watson.ibm.com> | 2006-06-09 09:06:12 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-06-15 05:31:25 -0400 |
commit | 30d8caf7c625203b295a78f143820cdc3124830b (patch) | |
tree | a8a759a1fcf3d8b53e1d9a587943932b4fc9011c /arch/powerpc/boot/prom.h | |
parent | 204face4fb3ba2ca09a4073e7debc595e14c2388 (diff) |
[POWERPC] Editable kernel command-line in zImage binary.
zImage will set /chosen/bootargs (if it is otherwise empty) with the
contents of a buffer in the section "__builtin_cmdline". This permits
tools to edit zImage binaries to set the command-line eventually
processed by vmlinux.
--
Signed-off-by: Michal Ostrowski <mostrows@watson.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/prom.h')
-rw-r--r-- | arch/powerpc/boot/prom.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/boot/prom.h b/arch/powerpc/boot/prom.h index 3e2ddd4a5a81..a57b184c564f 100644 --- a/arch/powerpc/boot/prom.h +++ b/arch/powerpc/boot/prom.h | |||
@@ -31,4 +31,11 @@ static inline int getprop(void *phandle, const char *name, | |||
31 | return call_prom("getprop", 4, 1, phandle, name, buf, buflen); | 31 | return call_prom("getprop", 4, 1, phandle, name, buf, buflen); |
32 | } | 32 | } |
33 | 33 | ||
34 | |||
35 | static inline int setprop(void *phandle, const char *name, | ||
36 | void *buf, int buflen) | ||
37 | { | ||
38 | return call_prom("setprop", 4, 1, phandle, name, buf, buflen); | ||
39 | } | ||
40 | |||
34 | #endif /* _PPC_BOOT_PROM_H_ */ | 41 | #endif /* _PPC_BOOT_PROM_H_ */ |