Paul Mundt | f413d0d | 2006-12-13 17:40:05 +0900 | [diff] [blame] | 1 | /* |
| 2 | * arch/sh/kernel/debugtraps.S |
| 3 | * |
| 4 | * Debug trap jump tables for SuperH |
| 5 | * |
Paul Mundt | ab6e570 | 2008-12-11 18:46:46 +0900 | [diff] [blame] | 6 | * Copyright (C) 2006 - 2008 Paul Mundt |
Paul Mundt | f413d0d | 2006-12-13 17:40:05 +0900 | [diff] [blame] | 7 | * |
| 8 | * This file is subject to the terms and conditions of the GNU General Public |
| 9 | * License. See the file "COPYING" in the main directory of this archive |
| 10 | * for more details. |
| 11 | */ |
| 12 | #include <linux/sys.h> |
| 13 | #include <linux/linkage.h> |
| 14 | |
Paul Mundt | ab6e570 | 2008-12-11 18:46:46 +0900 | [diff] [blame] | 15 | #if !defined(CONFIG_KGDB) |
Paul Mundt | ab6e570 | 2008-12-11 18:46:46 +0900 | [diff] [blame] | 16 | #define singlestep_trap_handler debug_trap_handler |
Paul Mundt | f413d0d | 2006-12-13 17:40:05 +0900 | [diff] [blame] | 17 | #endif |
| 18 | |
| 19 | #if !defined(CONFIG_SH_STANDARD_BIOS) |
Paul Mundt | ab6e570 | 2008-12-11 18:46:46 +0900 | [diff] [blame] | 20 | #define sh_bios_handler debug_trap_handler |
Paul Mundt | f413d0d | 2006-12-13 17:40:05 +0900 | [diff] [blame] | 21 | #endif |
| 22 | |
| 23 | .data |
| 24 | |
| 25 | ENTRY(debug_trap_table) |
| 26 | .long debug_trap_handler /* 0x30 */ |
| 27 | .long debug_trap_handler /* 0x31 */ |
| 28 | .long debug_trap_handler /* 0x32 */ |
| 29 | .long debug_trap_handler /* 0x33 */ |
| 30 | .long debug_trap_handler /* 0x34 */ |
| 31 | .long debug_trap_handler /* 0x35 */ |
| 32 | .long debug_trap_handler /* 0x36 */ |
| 33 | .long debug_trap_handler /* 0x37 */ |
| 34 | .long debug_trap_handler /* 0x38 */ |
| 35 | .long debug_trap_handler /* 0x39 */ |
| 36 | .long debug_trap_handler /* 0x3a */ |
| 37 | .long debug_trap_handler /* 0x3b */ |
Paul Mundt | ab6e570 | 2008-12-11 18:46:46 +0900 | [diff] [blame] | 38 | .long breakpoint_trap_handler /* 0x3c */ |
| 39 | .long singlestep_trap_handler /* 0x3d */ |
Paul Mundt | f413d0d | 2006-12-13 17:40:05 +0900 | [diff] [blame] | 40 | .long bug_trap_handler /* 0x3e */ |
| 41 | .long sh_bios_handler /* 0x3f */ |