traps.h 350 B

123456789101112131415161718
  1. #ifndef _ASMARM_TRAP_H
  2. #define _ASMARM_TRAP_H
  3. #include <linux/list.h>
  4. struct undef_hook {
  5. struct list_head node;
  6. u32 instr_mask;
  7. u32 instr_val;
  8. u32 cpsr_mask;
  9. u32 cpsr_val;
  10. int (*fn)(struct pt_regs *regs, unsigned int instr);
  11. };
  12. void register_undef_hook(struct undef_hook *hook);
  13. void unregister_undef_hook(struct undef_hook *hook);
  14. #endif