Merge to Fedora kernel-2.6.18-1.2224_FC5 patched with stable patch-2.6.18.1-vs2.0...
[linux-2.6.git] / include / asm-s390 / bug.h
1 #ifndef _S390_BUG_H
2 #define _S390_BUG_H
3
4 #include <linux/kernel.h>
5
6 #ifdef CONFIG_BUG
7
8 static inline __attribute__((noreturn)) void __do_illegal_op(void)
9 {
10 #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)
11         __builtin_trap();
12 #else
13         asm volatile(".long 0");
14 #endif
15 }
16
17 #define BUG() do { \
18         printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
19         __do_illegal_op(); \
20 } while (0)
21
22 #define HAVE_ARCH_BUG
23 #endif
24
25 #include <asm-generic/bug.h>
26
27 #endif