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