2007-05-06 14:50:22 -07:00
|
|
|
#ifndef _BLACKFIN_BUG_H
|
|
|
|
|
#define _BLACKFIN_BUG_H
|
2008-04-24 08:58:44 +08:00
|
|
|
|
|
|
|
|
#ifdef CONFIG_BUG
|
|
|
|
|
#define HAVE_ARCH_BUG
|
|
|
|
|
|
|
|
|
|
#define BUG() do { \
|
|
|
|
|
dump_bfin_trace_buffer(); \
|
|
|
|
|
printk(KERN_EMERG "BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \
|
|
|
|
|
panic("BUG!"); \
|
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
2007-05-06 14:50:22 -07:00
|
|
|
#include <asm-generic/bug.h>
|
2008-04-24 08:58:44 +08:00
|
|
|
|
2007-05-06 14:50:22 -07:00
|
|
|
#endif
|