18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef _M68K_BUG_H 38c2ecf20Sopenharmony_ci#define _M68K_BUG_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#ifdef CONFIG_MMU 68c2ecf20Sopenharmony_ci#ifdef CONFIG_BUG 78c2ecf20Sopenharmony_ci#ifdef CONFIG_DEBUG_BUGVERBOSE 88c2ecf20Sopenharmony_ci#ifndef CONFIG_SUN3 98c2ecf20Sopenharmony_ci#define BUG() do { \ 108c2ecf20Sopenharmony_ci pr_crit("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ 118c2ecf20Sopenharmony_ci barrier_before_unreachable(); \ 128c2ecf20Sopenharmony_ci __builtin_trap(); \ 138c2ecf20Sopenharmony_ci} while (0) 148c2ecf20Sopenharmony_ci#else 158c2ecf20Sopenharmony_ci#define BUG() do { \ 168c2ecf20Sopenharmony_ci pr_crit("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ 178c2ecf20Sopenharmony_ci barrier_before_unreachable(); \ 188c2ecf20Sopenharmony_ci panic("BUG!"); \ 198c2ecf20Sopenharmony_ci} while (0) 208c2ecf20Sopenharmony_ci#endif 218c2ecf20Sopenharmony_ci#else 228c2ecf20Sopenharmony_ci#define BUG() do { \ 238c2ecf20Sopenharmony_ci barrier_before_unreachable(); \ 248c2ecf20Sopenharmony_ci __builtin_trap(); \ 258c2ecf20Sopenharmony_ci} while (0) 268c2ecf20Sopenharmony_ci#endif 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#define HAVE_ARCH_BUG 298c2ecf20Sopenharmony_ci#endif 308c2ecf20Sopenharmony_ci#endif /* CONFIG_MMU */ 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci#include <asm-generic/bug.h> 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci#endif 35