blob: ad07527e2a990aec9af2a301254f955587f7fa40 [file] [log] [blame]
Kuninori Morimoto5933f6d2018-12-28 00:32:24 -08001/* SPDX-License-Identifier: GPL-2.0
2 *
Paul Mundtf413d0d2006-12-13 17:40:05 +09003 * arch/sh/kernel/debugtraps.S
4 *
5 * Debug trap jump tables for SuperH
6 *
Paul Mundtab6e5702008-12-11 18:46:46 +09007 * Copyright (C) 2006 - 2008 Paul Mundt
Paul Mundtf413d0d2006-12-13 17:40:05 +09008 */
9#include <linux/sys.h>
10#include <linux/linkage.h>
11
Paul Mundtab6e5702008-12-11 18:46:46 +090012#if !defined(CONFIG_KGDB)
Paul Mundtab6e5702008-12-11 18:46:46 +090013#define singlestep_trap_handler debug_trap_handler
Paul Mundtf413d0d2006-12-13 17:40:05 +090014#endif
15
16#if !defined(CONFIG_SH_STANDARD_BIOS)
Paul Mundtab6e5702008-12-11 18:46:46 +090017#define sh_bios_handler debug_trap_handler
Paul Mundtf413d0d2006-12-13 17:40:05 +090018#endif
19
20 .data
21
22ENTRY(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 Mundtab6e5702008-12-11 18:46:46 +090035 .long breakpoint_trap_handler /* 0x3c */
36 .long singlestep_trap_handler /* 0x3d */
Paul Mundtf413d0d2006-12-13 17:40:05 +090037 .long bug_trap_handler /* 0x3e */
38 .long sh_bios_handler /* 0x3f */