.. | .. |
---|
18 | 18 | |
---|
19 | 19 | /* Master romvec interface. */ |
---|
20 | 20 | struct linux_romvec *romvec; |
---|
21 | | -int prom_argc; |
---|
22 | | -LONG *_prom_argv, *_prom_envp; |
---|
| 21 | + |
---|
| 22 | +#if defined(CONFIG_64BIT) && defined(CONFIG_FW_ARC32) |
---|
| 23 | +/* stack for calling 32bit ARC prom */ |
---|
| 24 | +u64 o32_stk[4096]; |
---|
| 25 | +#endif |
---|
23 | 26 | |
---|
24 | 27 | void __init prom_init(void) |
---|
25 | 28 | { |
---|
26 | 29 | PSYSTEM_PARAMETER_BLOCK pb = PROMBLOCK; |
---|
27 | 30 | |
---|
28 | 31 | romvec = ROMVECTOR; |
---|
29 | | - |
---|
30 | | - prom_argc = fw_arg0; |
---|
31 | | - _prom_argv = (LONG *) fw_arg1; |
---|
32 | | - _prom_envp = (LONG *) fw_arg2; |
---|
33 | 32 | |
---|
34 | 33 | if (pb->magic != 0x53435241) { |
---|
35 | 34 | printk(KERN_CRIT "Aieee, bad prom vector magic %08lx\n", |
---|
.. | .. |
---|
38 | 37 | ; |
---|
39 | 38 | } |
---|
40 | 39 | |
---|
41 | | - prom_init_cmdline(); |
---|
| 40 | + prom_init_cmdline(fw_arg0, (LONG *)fw_arg1); |
---|
42 | 41 | prom_identify_arch(); |
---|
43 | 42 | printk(KERN_INFO "PROMLIB: ARC firmware Version %d Revision %d\n", |
---|
44 | 43 | pb->ver, pb->rev); |
---|
.. | .. |
---|
48 | 47 | pr_info("Press a key to reboot\n"); |
---|
49 | 48 | ArcRead(0, &c, 1, &cnt); |
---|
50 | 49 | ArcEnterInteractiveMode(); |
---|
51 | | -#endif |
---|
52 | | -#ifdef CONFIG_SGI_IP27 |
---|
53 | | - { |
---|
54 | | - extern const struct plat_smp_ops ip27_smp_ops; |
---|
55 | | - |
---|
56 | | - register_smp_ops(&ip27_smp_ops); |
---|
57 | | - } |
---|
58 | 50 | #endif |
---|
59 | 51 | } |
---|