forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/mips/pistachio/init.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Pistachio platform setup
34 *
45 * Copyright (C) 2014 Google, Inc.
56 * Copyright (C) 2016 Imagination Technologies
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms and conditions of the GNU General Public License,
9
- * version 2, as published by the Free Software Foundation.
107 */
118
129 #include <linux/init.h>
....@@ -86,12 +83,12 @@
8683 static void __init mips_nmi_setup(void)
8784 {
8885 void *base;
89
- extern char except_vec_nmi;
86
+ extern char except_vec_nmi[];
9087
9188 base = cpu_has_veic ?
9289 (void *)(CAC_BASE + 0xa80) :
9390 (void *)(CAC_BASE + 0x380);
94
- memcpy(base, &except_vec_nmi, 0x80);
91
+ memcpy(base, except_vec_nmi, 0x80);
9592 flush_icache_range((unsigned long)base,
9693 (unsigned long)base + 0x80);
9794 }
....@@ -99,12 +96,12 @@
9996 static void __init mips_ejtag_setup(void)
10097 {
10198 void *base;
102
- extern char except_vec_ejtag_debug;
99
+ extern char except_vec_ejtag_debug[];
103100
104101 base = cpu_has_veic ?
105102 (void *)(CAC_BASE + 0xa00) :
106103 (void *)(CAC_BASE + 0x300);
107
- memcpy(base, &except_vec_ejtag_debug, 0x80);
104
+ memcpy(base, except_vec_ejtag_debug, 0x80);
108105 flush_icache_range((unsigned long)base,
109106 (unsigned long)base + 0x80);
110107 }