traps.h 585 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (C) 2004-2006 Atmel Corporation
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef __ASM_AVR32_TRAPS_H
  9. #define __ASM_AVR32_TRAPS_H
  10. #include <linux/list.h>
  11. struct undef_hook {
  12. struct list_head node;
  13. u32 insn_mask;
  14. u32 insn_val;
  15. int (*fn)(struct pt_regs *regs, u32 insn);
  16. };
  17. void register_undef_hook(struct undef_hook *hook);
  18. void unregister_undef_hook(struct undef_hook *hook);
  19. #endif /* __ASM_AVR32_TRAPS_H */