forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-16 50a212ec906f7524620675f0c57357691c26c81f
kernel/arch/mips/mti-malta/malta-init.c
....@@ -90,24 +90,24 @@
9090 static void __init mips_nmi_setup(void)
9191 {
9292 void *base;
93
- extern char except_vec_nmi;
93
+ extern char except_vec_nmi[];
9494
9595 base = cpu_has_veic ?
9696 (void *)(CAC_BASE + 0xa80) :
9797 (void *)(CAC_BASE + 0x380);
98
- memcpy(base, &except_vec_nmi, 0x80);
98
+ memcpy(base, except_vec_nmi, 0x80);
9999 flush_icache_range((unsigned long)base, (unsigned long)base + 0x80);
100100 }
101101
102102 static void __init mips_ejtag_setup(void)
103103 {
104104 void *base;
105
- extern char except_vec_ejtag_debug;
105
+ extern char except_vec_ejtag_debug[];
106106
107107 base = cpu_has_veic ?
108108 (void *)(CAC_BASE + 0xa00) :
109109 (void *)(CAC_BASE + 0x300);
110
- memcpy(base, &except_vec_ejtag_debug, 0x80);
110
+ memcpy(base, except_vec_ejtag_debug, 0x80);
111111 flush_icache_range((unsigned long)base, (unsigned long)base + 0x80);
112112 }
113113
....@@ -118,8 +118,6 @@
118118
119119 void __init prom_init(void)
120120 {
121
- mips_display_message("LINUX");
122
-
123121 /*
124122 * early setup of _pcictrl_bonito so that we can determine
125123 * the system controller on a CORE_EMUL board
....@@ -277,7 +275,6 @@
277275
278276 default:
279277 /* Unknown system controller */
280
- mips_display_message("SC Error");
281278 while (1); /* We die here... */
282279 }
283280 board_nmi_handler_setup = mips_nmi_setup;