xref: /openbmc/linux/arch/sh/kernel/cpu/sh3/ex.S (revision 1e1030dccb1084c8a38976d3656aab1d50d762da)
11da177e4SLinus Torvalds/*
21da177e4SLinus Torvalds *  arch/sh/kernel/cpu/sh3/ex.S
31da177e4SLinus Torvalds *
400bf0610SPaul Mundt *  The SH-3 and SH-4 exception vector table.
51da177e4SLinus Torvalds
61da177e4SLinus Torvalds *  Copyright (C) 1999, 2000, 2002  Niibe Yutaka
7ef9247efSPaul Mundt *  Copyright (C) 2003 - 2008  Paul Mundt
81da177e4SLinus Torvalds *
91da177e4SLinus Torvalds * This file is subject to the terms and conditions of the GNU General Public
101da177e4SLinus Torvalds * License.  See the file "COPYING" in the main directory of this archive
111da177e4SLinus Torvalds * for more details.
121da177e4SLinus Torvalds */
131da177e4SLinus Torvalds#include <linux/linkage.h>
141da177e4SLinus Torvalds
15ef9247efSPaul Mundt#if !defined(CONFIG_MMU)
16ef9247efSPaul Mundt#define	tlb_miss_load			exception_error
17ef9247efSPaul Mundt#define tlb_miss_store			exception_error
18ef9247efSPaul Mundt#define initial_page_write		exception_error
19ef9247efSPaul Mundt#define tlb_protection_violation_load	exception_error
20ef9247efSPaul Mundt#define tlb_protection_violation_store	exception_error
21ef9247efSPaul Mundt#define address_error_load		exception_error
22ef9247efSPaul Mundt#define address_error_store		exception_error
23ef9247efSPaul Mundt#endif
24ef9247efSPaul Mundt
25ef9247efSPaul Mundt#if !defined(CONFIG_SH_FPU)
26ef9247efSPaul Mundt#define	fpu_error_trap_handler		exception_error
27ef9247efSPaul Mundt#endif
28ef9247efSPaul Mundt
29ab6e570bSPaul Mundt#if !defined(CONFIG_KGDB)
30ef9247efSPaul Mundt#define kgdb_handle_exception		exception_error
31ef9247efSPaul Mundt#endif
32ef9247efSPaul Mundt
331da177e4SLinus Torvalds	.align 2
341da177e4SLinus Torvalds	.data
351da177e4SLinus Torvalds
361da177e4SLinus TorvaldsENTRY(exception_handling_table)
371da177e4SLinus Torvalds	.long	exception_error		/* 000 */
381da177e4SLinus Torvalds	.long	exception_error
391da177e4SLinus Torvalds	.long	tlb_miss_load		/* 040 */
401da177e4SLinus Torvalds	.long	tlb_miss_store
411da177e4SLinus Torvalds	.long	initial_page_write
421da177e4SLinus Torvalds	.long	tlb_protection_violation_load
431da177e4SLinus Torvalds	.long	tlb_protection_violation_store
441da177e4SLinus Torvalds	.long	address_error_load
451da177e4SLinus Torvalds	.long	address_error_store	/* 100 */
4674d99a5eSPaul Mundt	.long	fpu_error_trap_handler	/* 120 */
471da177e4SLinus Torvalds	.long	exception_error		/* 140 */
481da177e4SLinus Torvalds	.long	system_call	! Unconditional Trap	 /* 160 */
491da177e4SLinus Torvalds	.long	exception_error	! reserved_instruction (filled by trap_init) /* 180 */
501da177e4SLinus Torvalds	.long	exception_error	! illegal_slot_instruction (filled by trap_init) /*1A0*/
51*1e1030dcSPaul Mundt	.long	nmi_trap_handler	/* 1C0 */	! Allow trap to debugger
521da177e4SLinus Torvalds	.long	break_point_trap	/* 1E0 */
531f666587SPaul Mundt
541f666587SPaul Mundt	/*
551f666587SPaul Mundt	 * Pad the remainder of the table out, exceptions residing in far
561f666587SPaul Mundt	 * away offsets can be manually inserted in to their appropriate
571f666587SPaul Mundt	 * location via set_exception_table_{evt,vec}().
581f666587SPaul Mundt	 */
591f666587SPaul Mundt	.balign	4096,0,4096
60