hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/nios2/kernel/kgdb.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Nios2 KGDB support
34 *
....@@ -6,20 +7,6 @@
67 *
78 * Based on the code posted by Kazuyasu on the Altera Forum at:
89 * http://www.alteraforum.com/forum/showpost.php?p=77003&postcount=20
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version.
14
- *
15
- * This program is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- * GNU General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
22
- *
2310 */
2411 #include <linux/ptrace.h>
2512 #include <linux/kgdb.h>
....@@ -165,7 +152,7 @@
165152 /* Nothing to do */
166153 }
167154
168
-struct kgdb_arch arch_kgdb_ops = {
155
+const struct kgdb_arch arch_kgdb_ops = {
169156 /* Breakpoint instruction: trap 30 */
170157 .gdb_bpt_instr = { 0xba, 0x6f, 0x3b, 0x00 },
171158 };