exception.h 609 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. #ifndef __ASM_EXCEPTION_H
  3. #define __ASM_EXCEPTION_H
  4. struct pt_regs;
  5. struct exception_table_entry;
  6. extern void ia64_handle_exception(struct pt_regs *regs,
  7. const struct exception_table_entry *e);
  8. #define ia64_done_with_exception(regs) \
  9. ({ \
  10. int __ex_ret = 0; \
  11. const struct exception_table_entry *e; \
  12. e = search_exception_tables((regs)->cr_iip + ia64_psr(regs)->ri); \
  13. if (e) { \
  14. ia64_handle_exception(regs, e); \
  15. __ex_ret = 1; \
  16. } \
  17. __ex_ret; \
  18. })
  19. #endif /* __ASM_EXCEPTION_H */