0001
0002 #ifndef _ASMARM_TRAP_H
0003 #define _ASMARM_TRAP_H
0004
0005 #include <linux/list.h>
0006
0007 struct pt_regs;
0008 struct task_struct;
0009
0010 struct undef_hook {
0011 struct list_head node;
0012 u32 instr_mask;
0013 u32 instr_val;
0014 u32 cpsr_mask;
0015 u32 cpsr_val;
0016 int (*fn)(struct pt_regs *regs, unsigned int instr);
0017 };
0018
0019 void register_undef_hook(struct undef_hook *hook);
0020 void unregister_undef_hook(struct undef_hook *hook);
0021
0022 static inline int __in_irqentry_text(unsigned long ptr)
0023 {
0024 extern char __irqentry_text_start[];
0025 extern char __irqentry_text_end[];
0026
0027 return ptr >= (unsigned long)&__irqentry_text_start &&
0028 ptr < (unsigned long)&__irqentry_text_end;
0029 }
0030
0031 extern void __init early_trap_init(void *);
0032 extern void dump_backtrace_entry(unsigned long where, unsigned long from,
0033 unsigned long frame, const char *loglvl);
0034 extern void ptrace_break(struct pt_regs *regs);
0035
0036 extern void *vectors_page;
0037
0038 #endif