Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 1 | #ifndef _BLACKFIN_BUG_H |
| 2 | #define _BLACKFIN_BUG_H |
Mike Frysinger | 2d19123 | 2008-04-24 08:58:44 +0800 | [diff] [blame] | 3 | |
| 4 | #ifdef CONFIG_BUG |
| 5 | #define HAVE_ARCH_BUG |
| 6 | |
| 7 | #define BUG() do { \ |
| 8 | dump_bfin_trace_buffer(); \ |
| 9 | printk(KERN_EMERG "BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \ |
| 10 | panic("BUG!"); \ |
| 11 | } while (0) |
| 12 | |
| 13 | #endif |
| 14 | |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 15 | #include <asm-generic/bug.h> |
Mike Frysinger | 2d19123 | 2008-04-24 08:58:44 +0800 | [diff] [blame] | 16 | |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 17 | #endif |