blob: a6f4136ba1b69bb327dbb0cad70bbcd6936b88c1 [file] [log] [blame]
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _ASMRISCV_BUG_H_
#define _ASMRISCV_BUG_H_
#ifndef __ASSEMBLY__
static inline void bug(void)
{
asm volatile("ebreak");
}
#else
.macro bug
ebreak
.endm
#endif
#endif /* _ASMRISCV_BUG_H_ */