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