Kuninori Morimoto | 5933f6d | 2018-12-28 00:32:24 -0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 |
| 2 | * |
Paul Mundt | f413d0d | 2006-12-13 17:40:05 +0900 | [diff] [blame] | 3 | * arch/sh/kernel/debugtraps.S |
| 4 | * |
| 5 | * Debug trap jump tables for SuperH |
| 6 | * |
Paul Mundt | ab6e570 | 2008-12-11 18:46:46 +0900 | [diff] [blame] | 7 | * Copyright (C) 2006 - 2008 Paul Mundt |
Paul Mundt | f413d0d | 2006-12-13 17:40:05 +0900 | [diff] [blame] | 8 | */ |
| 9 | #include <linux/sys.h> |
| 10 | #include <linux/linkage.h> |
| 11 | |
Paul Mundt | ab6e570 | 2008-12-11 18:46:46 +0900 | [diff] [blame] | 12 | #if !defined(CONFIG_KGDB) |
Paul Mundt | ab6e570 | 2008-12-11 18:46:46 +0900 | [diff] [blame] | 13 | #define singlestep_trap_handler debug_trap_handler |
Paul Mundt | f413d0d | 2006-12-13 17:40:05 +0900 | [diff] [blame] | 14 | #endif |
| 15 | |
| 16 | #if !defined(CONFIG_SH_STANDARD_BIOS) |
Paul Mundt | ab6e570 | 2008-12-11 18:46:46 +0900 | [diff] [blame] | 17 | #define sh_bios_handler debug_trap_handler |
Paul Mundt | f413d0d | 2006-12-13 17:40:05 +0900 | [diff] [blame] | 18 | #endif |
| 19 | |
| 20 | .data |
| 21 | |
| 22 | ENTRY(debug_trap_table) |
| 23 | .long debug_trap_handler /* 0x30 */ |
| 24 | .long debug_trap_handler /* 0x31 */ |
| 25 | .long debug_trap_handler /* 0x32 */ |
| 26 | .long debug_trap_handler /* 0x33 */ |
| 27 | .long debug_trap_handler /* 0x34 */ |
| 28 | .long debug_trap_handler /* 0x35 */ |
| 29 | .long debug_trap_handler /* 0x36 */ |
| 30 | .long debug_trap_handler /* 0x37 */ |
| 31 | .long debug_trap_handler /* 0x38 */ |
| 32 | .long debug_trap_handler /* 0x39 */ |
| 33 | .long debug_trap_handler /* 0x3a */ |
| 34 | .long debug_trap_handler /* 0x3b */ |
Paul Mundt | ab6e570 | 2008-12-11 18:46:46 +0900 | [diff] [blame] | 35 | .long breakpoint_trap_handler /* 0x3c */ |
| 36 | .long singlestep_trap_handler /* 0x3d */ |
Paul Mundt | f413d0d | 2006-12-13 17:40:05 +0900 | [diff] [blame] | 37 | .long bug_trap_handler /* 0x3e */ |
| 38 | .long sh_bios_handler /* 0x3f */ |