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