forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/mips/fw/arc/init.c
....@@ -18,18 +18,17 @@
1818
1919 /* Master romvec interface. */
2020 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
2326
2427 void __init prom_init(void)
2528 {
2629 PSYSTEM_PARAMETER_BLOCK pb = PROMBLOCK;
2730
2831 romvec = ROMVECTOR;
29
-
30
- prom_argc = fw_arg0;
31
- _prom_argv = (LONG *) fw_arg1;
32
- _prom_envp = (LONG *) fw_arg2;
3332
3433 if (pb->magic != 0x53435241) {
3534 printk(KERN_CRIT "Aieee, bad prom vector magic %08lx\n",
....@@ -38,7 +37,7 @@
3837 ;
3938 }
4039
41
- prom_init_cmdline();
40
+ prom_init_cmdline(fw_arg0, (LONG *)fw_arg1);
4241 prom_identify_arch();
4342 printk(KERN_INFO "PROMLIB: ARC firmware Version %d Revision %d\n",
4443 pb->ver, pb->rev);
....@@ -48,12 +47,5 @@
4847 pr_info("Press a key to reboot\n");
4948 ArcRead(0, &c, 1, &cnt);
5049 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
- }
5850 #endif
5951 }