bug.h 565 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_CSKY_BUG_H
  3. #define __ASM_CSKY_BUG_H
  4. #include <linux/compiler.h>
  5. #include <linux/const.h>
  6. #include <linux/types.h>
  7. #define BUG() \
  8. do { \
  9. asm volatile ("bkpt\n"); \
  10. unreachable(); \
  11. } while (0)
  12. #define HAVE_ARCH_BUG
  13. #include <asm-generic/bug.h>
  14. struct pt_regs;
  15. void die(struct pt_regs *regs, const char *str);
  16. void do_trap(struct pt_regs *regs, int signo, int code, unsigned long addr);
  17. void show_regs(struct pt_regs *regs);
  18. void show_code(struct pt_regs *regs);
  19. #endif /* __ASM_CSKY_BUG_H */