at v2.6.19 27 lines 456 B view raw
1#ifndef _S390_BUG_H 2#define _S390_BUG_H 3 4#include <linux/kernel.h> 5 6#ifdef CONFIG_BUG 7 8static 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