blob: cb00e4a82d4d5e47048e512c8fa3a1efed52ba8b [file] [log] [blame]
Paul Mundtf413d0d2006-12-13 17:40:05 +09001/*
2 * arch/sh/kernel/debugtraps.S
3 *
4 * Debug trap jump tables for SuperH
5 *
Paul Mundtab6e5702008-12-11 18:46:46 +09006 * Copyright (C) 2006 - 2008 Paul Mundt
Paul Mundtf413d0d2006-12-13 17:40:05 +09007 *
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 Mundtab6e5702008-12-11 18:46:46 +090015#if !defined(CONFIG_KGDB)
16#define breakpoint_trap_handler debug_trap_handler
17#define singlestep_trap_handler debug_trap_handler
Paul Mundtf413d0d2006-12-13 17:40:05 +090018#endif
19
20#if !defined(CONFIG_SH_STANDARD_BIOS)
Paul Mundtab6e5702008-12-11 18:46:46 +090021#define sh_bios_handler debug_trap_handler
Paul Mundtf413d0d2006-12-13 17:40:05 +090022#endif
23
Matt Flemingb344e24a2009-08-16 21:54:48 +010024#if !defined(CONFIG_DWARF_UNWINDER)
25#define unwinder_trap_handler debug_trap_handler
26#endif
27
Paul Mundtf413d0d2006-12-13 17:40:05 +090028 .data
29
30ENTRY(debug_trap_table)
31 .long debug_trap_handler /* 0x30 */
32 .long debug_trap_handler /* 0x31 */
33 .long debug_trap_handler /* 0x32 */
34 .long debug_trap_handler /* 0x33 */
35 .long debug_trap_handler /* 0x34 */
36 .long debug_trap_handler /* 0x35 */
37 .long debug_trap_handler /* 0x36 */
38 .long debug_trap_handler /* 0x37 */
39 .long debug_trap_handler /* 0x38 */
40 .long debug_trap_handler /* 0x39 */
41 .long debug_trap_handler /* 0x3a */
Matt Flemingb344e24a2009-08-16 21:54:48 +010042 .long unwinder_trap_handler /* 0x3b */
Paul Mundtab6e5702008-12-11 18:46:46 +090043 .long breakpoint_trap_handler /* 0x3c */
44 .long singlestep_trap_handler /* 0x3d */
Paul Mundtf413d0d2006-12-13 17:40:05 +090045 .long bug_trap_handler /* 0x3e */
46 .long sh_bios_handler /* 0x3f */