bug.h 539 B

123456789101112131415161718
  1. #ifndef _ASM_SCORE_BUG_H
  2. #define _ASM_SCORE_BUG_H
  3. #include <asm-generic/bug.h>
  4. struct pt_regs;
  5. extern void __die(const char *, struct pt_regs *, const char *,
  6. const char *, unsigned long) __attribute__((noreturn));
  7. extern void __die_if_kernel(const char *, struct pt_regs *, const char *,
  8. const char *, unsigned long);
  9. #define die(msg, regs) \
  10. __die(msg, regs, __FILE__ ":", __func__, __LINE__)
  11. #define die_if_kernel(msg, regs) \
  12. __die_if_kernel(msg, regs, __FILE__ ":", __func__, __LINE__)
  13. #endif /* _ASM_SCORE_BUG_H */