162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef _M68K_BUG_H 362306a36Sopenharmony_ci#define _M68K_BUG_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#ifdef CONFIG_MMU 662306a36Sopenharmony_ci#ifdef CONFIG_BUG 762306a36Sopenharmony_ci#ifdef CONFIG_DEBUG_BUGVERBOSE 862306a36Sopenharmony_ci#ifndef CONFIG_SUN3 962306a36Sopenharmony_ci#define BUG() do { \ 1062306a36Sopenharmony_ci pr_crit("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ 1162306a36Sopenharmony_ci barrier_before_unreachable(); \ 1262306a36Sopenharmony_ci __builtin_trap(); \ 1362306a36Sopenharmony_ci} while (0) 1462306a36Sopenharmony_ci#else 1562306a36Sopenharmony_ci#define BUG() do { \ 1662306a36Sopenharmony_ci pr_crit("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ 1762306a36Sopenharmony_ci barrier_before_unreachable(); \ 1862306a36Sopenharmony_ci panic("BUG!"); \ 1962306a36Sopenharmony_ci} while (0) 2062306a36Sopenharmony_ci#endif 2162306a36Sopenharmony_ci#else 2262306a36Sopenharmony_ci#define BUG() do { \ 2362306a36Sopenharmony_ci barrier_before_unreachable(); \ 2462306a36Sopenharmony_ci __builtin_trap(); \ 2562306a36Sopenharmony_ci} while (0) 2662306a36Sopenharmony_ci#endif 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci#define HAVE_ARCH_BUG 2962306a36Sopenharmony_ci#endif 3062306a36Sopenharmony_ci#endif /* CONFIG_MMU */ 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci#include <asm-generic/bug.h> 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci#endif 35