--- zzzz-none-000/linux-3.10.107/arch/h8300/include/asm/traps.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/h8300/include/asm/traps.h 2021-02-04 17:41:59.000000000 +0000 @@ -11,14 +11,20 @@ #ifndef _H8300_TRAPS_H #define _H8300_TRAPS_H -extern void system_call(void); -extern void interrupt_entry(void); -extern void trace_break(void); +extern void _system_call(void); +extern void _interrupt_entry(void); +extern void _trace_break(void); +extern void _nmi(void); +extern void _interrupt_entry(void); + +extern unsigned long *_interrupt_redirect_table; #define JMP_OP 0x5a000000 #define JSR_OP 0x5e000000 #define VECTOR(address) ((JMP_OP)|((unsigned long)address)) #define REDIRECT(address) ((JSR_OP)|((unsigned long)address)) +#define CPU_VECTOR ((unsigned long *)0x000000) +#define ADDR_MASK (0xffffff) #define TRACE_VEC 5 @@ -27,11 +33,9 @@ #define TRAP2_VEC 10 #define TRAP3_VEC 11 -#if defined(__H8300H__) -#define NR_TRAPS 12 -#endif -#if defined(__H8300S__) -#define NR_TRAPS 16 -#endif +extern char _start, _etext; +#define check_kernel_text(addr) \ + ((addr >= (unsigned long)(&_start)) && \ + (addr < (unsigned long)(&_etext))) #endif /* _H8300_TRAPS_H */