]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
dbc367eb GU |
2 | #ifndef _M68K_BUG_H |
3 | #define _M68K_BUG_H | |
4 | ||
5 | #ifdef CONFIG_MMU | |
6 | #ifdef CONFIG_BUG | |
7 | #ifdef CONFIG_DEBUG_BUGVERBOSE | |
8 | #ifndef CONFIG_SUN3 | |
9 | #define BUG() do { \ | |
f0b914ae | 10 | pr_crit("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ |
dbc367eb GU |
11 | __builtin_trap(); \ |
12 | } while (0) | |
49148020 | 13 | #else |
dbc367eb | 14 | #define BUG() do { \ |
f0b914ae | 15 | pr_crit("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ |
dbc367eb GU |
16 | panic("BUG!"); \ |
17 | } while (0) | |
18 | #endif | |
19 | #else | |
20 | #define BUG() do { \ | |
21 | __builtin_trap(); \ | |
22 | } while (0) | |
23 | #endif | |
24 | ||
25 | #define HAVE_ARCH_BUG | |
26 | #endif | |
27 | #endif /* CONFIG_MMU */ | |
28 | ||
29 | #include <asm-generic/bug.h> | |
30 | ||
49148020 | 31 | #endif |