2 * include/asm-xtensa/bug.h
4 * Macros to cause a 'bug' message.
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
10 * Copyright (C) 2001 - 2005 Tensilica Inc.
16 #include <linux/stringify.h>
18 #define ILL __asm__ __volatile__ (".byte 0,0,0\n")
20 #ifdef CONFIG_KALLSYMS
22 printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
27 printk("kernel BUG!\n"); \
32 #define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0)
33 #define PAGE_BUG(page) do { BUG(); } while (0)
34 #define WARN_ON(condition) do { \
35 if (unlikely((condition)!=0)) { \
36 printk ("Warning in %s at %s:%d\n", __FUNCTION__, __FILE__, __LINE__); \
41 #endif /* _XTENSA_BUG_H */