| * cmdline.c: read the command line passed to us by the PROM. |
| * Copyright (C) 1998 Harald Koerfgen |
| * Copyright (C) 2002, 2004 Maciej W. Rozycki |
| #include <linux/kernel.h> |
| #include <linux/string.h> |
| #include <asm/bootinfo.h> |
| #include <asm/dec/prom.h> |
| void __init prom_init_cmdline(s32 argc, s32 *argv, u32 magic) |
| * collect args and prepare cmd_line |
| for (i = start_arg; i < argc; i++) { |
| arg = (void *)(long)(argv[i]); |
| strcat(arcs_cmdline, arg); |
| strcat(arcs_cmdline, " "); |
| printk("arcs_cmdline: %s\n", &(arcs_cmdline[0])); |