import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm64 / include / asm / traps.h
index 10ca8ff93cc25ca99a00b0bd3ed6993daea633a1..5921cf1c77f38030fc1c8ca642e7e8e498966298 100644 (file)
 #ifndef __ASM_TRAP_H
 #define __ASM_TRAP_H
 
+#include <linux/list.h>
+
+struct undef_hook {
+       struct list_head node;
+       u32 instr_mask;
+       u32 instr_val;
+       u32 pstate_mask;
+       u32 pstate_val;
+       int (*fn)(struct pt_regs *regs, unsigned int instr);
+};
+
+void register_undef_hook(struct undef_hook *hook);
+
+#ifdef CONFIG_MEDIATEK_SOLUTION
+struct pt_regs;
+
+int register_async_abort_handler(void (*fn)(struct pt_regs *regs, void *), void *priv);
+#endif
+
 static inline int in_exception_text(unsigned long ptr)
 {
        extern char __exception_text_start[];