bug.h 520 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
  3. #ifndef __ASM_CSKY_BUG_H
  4. #define __ASM_CSKY_BUG_H
  5. #include <linux/compiler.h>
  6. #include <linux/const.h>
  7. #include <linux/types.h>
  8. #define BUG() \
  9. do { \
  10. asm volatile ("bkpt\n"); \
  11. unreachable(); \
  12. } while (0)
  13. #define HAVE_ARCH_BUG
  14. #include <asm-generic/bug.h>
  15. struct pt_regs;
  16. void die_if_kernel(char *str, struct pt_regs *regs, int nr);
  17. void show_regs(struct pt_regs *regs);
  18. #endif /* __ASM_CSKY_BUG_H */