This source file includes following definitions.
- prom_init_cmdline
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 #include <asm/bootinfo.h>
17
18 #include <loongson.h>
19
20 void __init prom_init_cmdline(void)
21 {
22 int prom_argc;
23
24 int *_prom_argv;
25 int i;
26 long l;
27
28
29 prom_argc = fw_arg0;
30 _prom_argv = (int *)fw_arg1;
31
32
33 arcs_cmdline[0] = '\0';
34 for (i = 1; i < prom_argc; i++) {
35 l = (long)_prom_argv[i];
36 if (strlen(arcs_cmdline) + strlen(((char *)l) + 1)
37 >= sizeof(arcs_cmdline))
38 break;
39 strcat(arcs_cmdline, ((char *)l));
40 strcat(arcs_cmdline, " ");
41 }
42
43 prom_init_machtype();
44 }