.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Nios2 KGDB support |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * |
---|
7 | 8 | * Based on the code posted by Kazuyasu on the Altera Forum at: |
---|
8 | 9 | * 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 | | - * |
---|
23 | 10 | */ |
---|
24 | 11 | #include <linux/ptrace.h> |
---|
25 | 12 | #include <linux/kgdb.h> |
---|
.. | .. |
---|
165 | 152 | /* Nothing to do */ |
---|
166 | 153 | } |
---|
167 | 154 | |
---|
168 | | -struct kgdb_arch arch_kgdb_ops = { |
---|
| 155 | +const struct kgdb_arch arch_kgdb_ops = { |
---|
169 | 156 | /* Breakpoint instruction: trap 30 */ |
---|
170 | 157 | .gdb_bpt_instr = { 0xba, 0x6f, 0x3b, 0x00 }, |
---|
171 | 158 | }; |
---|