patch-2.4.22 linux-2.4.22/arch/mips/dec/prom/cmdline.c
Next file: linux-2.4.22/arch/mips/dec/prom/identify.c
Previous file: linux-2.4.22/arch/mips/dec/prom/call_o32.S
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
2003-08-25 04:44:39.000000000 -0700
- Orig file:
linux-2.4.21/arch/mips/dec/prom/cmdline.c
- Orig date:
2002-08-02 17:39:43.000000000 -0700
diff -urN linux-2.4.21/arch/mips/dec/prom/cmdline.c linux-2.4.22/arch/mips/dec/prom/cmdline.c
@@ -6,32 +6,30 @@
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/string.h>
+#include <linux/types.h>
#include <asm/bootinfo.h>
-
-#include "prom.h"
+#include <asm/dec/prom.h>
#undef PROM_DEBUG
-#ifdef PROM_DEBUG
-extern int (*prom_printf)(char *, ...);
-#endif
-
char arcs_cmdline[CL_SIZE];
-void __init prom_init_cmdline(int argc, char **argv, unsigned long magic)
+void __init prom_init_cmdline(s32 argc, s32 *argv, u32 magic)
{
+ char *arg;
int start_arg, i;
/*
* collect args and prepare cmd_line
*/
- if (magic != REX_PROM_MAGIC)
+ if (!prom_is_rex(magic))
start_arg = 1;
else
start_arg = 2;
for (i = start_arg; i < argc; i++) {
- strcat(arcs_cmdline, argv[i]);
+ arg = (void *)(long)(argv[i]);
+ strcat(arcs_cmdline, arg);
if (i < (argc - 1))
strcat(arcs_cmdline, " ");
}
@@ -39,6 +37,4 @@
#ifdef PROM_DEBUG
prom_printf("arcs_cmdline: %s\n", &(arcs_cmdline[0]));
#endif
-
}
-
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)