Go to the documentation of this file. 1 #ifndef __ASM_SH_TRAPS_32_H
2 #define __ASM_SH_TRAPS_32_H
4 #include <linux/types.h>
7 #ifdef CONFIG_CPU_HAS_SR_RB
8 #define lookup_exception_vector() \
12 __asm__ __volatile__ ( \
13 "stc r2_bank, %0\n\t" \
20 #define lookup_exception_vector() \
23 __asm__ __volatile__ ( \
32 static inline void trigger_address_error(
void)
38 :
"r" (0x10000000),
"r" (0x80000001)
43 unsigned long writeaccess,
46 unsigned long r6,
unsigned long r7,
49 unsigned long r6,
unsigned long r7,
52 unsigned long r6,
unsigned long r7,
55 unsigned long r6,
unsigned long r7,
58 #define BUILD_TRAP_HANDLER(name) \
59 asmlinkage void name##_trap_handler(unsigned long r4, unsigned long r5, \
60 unsigned long r6, unsigned long r7, \
61 struct pt_regs __regs)
63 #define TRAP_HANDLER_DECL \
64 struct pt_regs *regs = RELOC_HIDE(&__regs, 0); \
65 unsigned int vec = regs->tra; \