.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Pistachio platform setup |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2014 Google, Inc. |
---|
5 | 6 | * 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. |
---|
10 | 7 | */ |
---|
11 | 8 | |
---|
12 | 9 | #include <linux/init.h> |
---|
.. | .. |
---|
86 | 83 | static void __init mips_nmi_setup(void) |
---|
87 | 84 | { |
---|
88 | 85 | void *base; |
---|
89 | | - extern char except_vec_nmi; |
---|
| 86 | + extern char except_vec_nmi[]; |
---|
90 | 87 | |
---|
91 | 88 | base = cpu_has_veic ? |
---|
92 | 89 | (void *)(CAC_BASE + 0xa80) : |
---|
93 | 90 | (void *)(CAC_BASE + 0x380); |
---|
94 | | - memcpy(base, &except_vec_nmi, 0x80); |
---|
| 91 | + memcpy(base, except_vec_nmi, 0x80); |
---|
95 | 92 | flush_icache_range((unsigned long)base, |
---|
96 | 93 | (unsigned long)base + 0x80); |
---|
97 | 94 | } |
---|
.. | .. |
---|
99 | 96 | static void __init mips_ejtag_setup(void) |
---|
100 | 97 | { |
---|
101 | 98 | void *base; |
---|
102 | | - extern char except_vec_ejtag_debug; |
---|
| 99 | + extern char except_vec_ejtag_debug[]; |
---|
103 | 100 | |
---|
104 | 101 | base = cpu_has_veic ? |
---|
105 | 102 | (void *)(CAC_BASE + 0xa00) : |
---|
106 | 103 | (void *)(CAC_BASE + 0x300); |
---|
107 | | - memcpy(base, &except_vec_ejtag_debug, 0x80); |
---|
| 104 | + memcpy(base, except_vec_ejtag_debug, 0x80); |
---|
108 | 105 | flush_icache_range((unsigned long)base, |
---|
109 | 106 | (unsigned long)base + 0x80); |
---|
110 | 107 | } |
---|