traps.h 646 B

1234567891011121314151617181920212223
  1. /*
  2. * arch/xtensa/include/asm/traps.h
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * Copyright (C) 2012 Tensilica Inc.
  9. */
  10. #ifndef _XTENSA_TRAPS_H
  11. #define _XTENSA_TRAPS_H
  12. #include <asm/ptrace.h>
  13. /*
  14. * handler must be either of the following:
  15. * void (*)(struct pt_regs *regs);
  16. * void (*)(struct pt_regs *regs, unsigned long exccause);
  17. */
  18. extern void * __init trap_set_handler(int cause, void *handler);
  19. extern void do_unhandled(struct pt_regs *regs, unsigned long exccause);
  20. #endif /* _XTENSA_TRAPS_H */