Add the exception and interrupt handling machanism for basic LoongArch support. Reviewed-by: WANG Xuerui <git@xen0n.name> Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
23 lines
352 B
C
23 lines
352 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __ASM_BUG_H
|
|
#define __ASM_BUG_H
|
|
|
|
#include <linux/compiler.h>
|
|
|
|
#ifdef CONFIG_BUG
|
|
|
|
#include <asm/break.h>
|
|
|
|
static inline void __noreturn BUG(void)
|
|
{
|
|
__asm__ __volatile__("break %0" : : "i" (BRK_BUG));
|
|
unreachable();
|
|
}
|
|
|
|
#define HAVE_ARCH_BUG
|
|
|
|
#endif
|
|
|
|
#include <asm-generic/bug.h>
|
|
|
|
#endif /* __ASM_BUG_H */
|