1 #ifndef _BLACKFIN_BUG_H
2 #define _BLACKFIN_BUG_H
6 #define BFIN_BUG_OPCODE 0xefcd
8 #ifdef CONFIG_DEBUG_BUGVERBOSE
10 #define _BUG_OR_WARN(flags) \
13 " .section __bug_table,\"a\",@progbits\n" \
21 : "i"(BFIN_BUG_OPCODE), "i"(__FILE__), \
22 "i"(__LINE__), "i"(flags), \
23 "i"(sizeof(struct bug_entry)))
27 #define _BUG_OR_WARN(flags) \
30 " .section __bug_table,\"a\",@progbits\n" \
36 : "i"(BFIN_BUG_OPCODE), "i"(flags), \
37 "i"(sizeof(struct bug_entry)))
39 #endif /* CONFIG_DEBUG_BUGVERBOSE */
47 #define WARN_ON(condition) \
49 int __ret_warn_on = !!(condition); \
50 if (unlikely(__ret_warn_on)) \
51 _BUG_OR_WARN(BUGFLAG_WARNING); \
52 unlikely(__ret_warn_on); \
56 #define HAVE_ARCH_WARN_ON
60 #include <asm-generic/bug.h>