of: MSI: Simplify irqdomain lookup
[linux/fpc-iii.git] / arch / arm / include / asm / traps.h
blobf555bb3664dcaa2dbee6ab4e1f486d24e360ba8f
1 #ifndef _ASMARM_TRAP_H
2 #define _ASMARM_TRAP_H
4 #include <linux/list.h>
6 struct pt_regs;
7 struct task_struct;
9 struct undef_hook {
10 struct list_head node;
11 u32 instr_mask;
12 u32 instr_val;
13 u32 cpsr_mask;
14 u32 cpsr_val;
15 int (*fn)(struct pt_regs *regs, unsigned int instr);
18 void register_undef_hook(struct undef_hook *hook);
19 void unregister_undef_hook(struct undef_hook *hook);
21 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
22 static inline int __in_irqentry_text(unsigned long ptr)
24 extern char __irqentry_text_start[];
25 extern char __irqentry_text_end[];
27 return ptr >= (unsigned long)&__irqentry_text_start &&
28 ptr < (unsigned long)&__irqentry_text_end;
30 #else
31 static inline int __in_irqentry_text(unsigned long ptr)
33 return 0;
35 #endif
37 static inline int in_exception_text(unsigned long ptr)
39 extern char __exception_text_start[];
40 extern char __exception_text_end[];
41 int in;
43 in = ptr >= (unsigned long)&__exception_text_start &&
44 ptr < (unsigned long)&__exception_text_end;
46 return in ? : __in_irqentry_text(ptr);
49 extern void __init early_trap_init(void *);
50 extern void dump_backtrace_entry(unsigned long where, unsigned long from, unsigned long frame);
51 extern void ptrace_break(struct task_struct *tsk, struct pt_regs *regs);
53 extern void *vectors_page;
55 #endif