5 * Tell the user there is some problem.
6 * The offending file and line are encoded in the __bug_table section.
11 /* the break instruction is used as BUG() marker. */
12 #define PARISC_BUG_BREAK_ASM "break 0x1f, 0x1fff"
13 #define PARISC_BUG_BREAK_INSN 0x03ffe01f /* PARISC_BUG_BREAK_ASM */
15 #if defined(CONFIG_64BIT)
16 #define ASM_WORD_INSN ".dword\t"
18 #define ASM_WORD_INSN ".word\t"
21 #ifdef CONFIG_DEBUG_BUGVERBOSE
25 "1:\t" PARISC_BUG_BREAK_ASM "\n" \
26 "\t.pushsection __bug_table,\"a\"\n" \
27 "2:\t" ASM_WORD_INSN "1b, %c0\n" \
28 "\t.short %c1, %c2\n" \
31 : : "i" (__FILE__), "i" (__LINE__), \
32 "i" (0), "i" (sizeof(struct bug_entry)) ); \
39 asm volatile(PARISC_BUG_BREAK_ASM : : ); \
44 #ifdef CONFIG_DEBUG_BUGVERBOSE
48 "1:\t" PARISC_BUG_BREAK_ASM "\n" \
49 "\t.pushsection __bug_table,\"a\"\n" \
50 "2:\t" ASM_WORD_INSN "1b, %c0\n" \
51 "\t.short %c1, %c2\n" \
54 : : "i" (__FILE__), "i" (__LINE__), \
55 "i" (BUGFLAG_WARNING), \
56 "i" (sizeof(struct bug_entry)) ); \
62 "1:\t" PARISC_BUG_BREAK_ASM "\n" \
63 "\t.pushsection __bug_table,\"a\"\n" \
64 "2:\t" ASM_WORD_INSN "1b\n" \
68 : : "i" (BUGFLAG_WARNING), \
69 "i" (sizeof(struct bug_entry)) ); \
74 #define WARN_ON(x) ({ \
75 int __ret_warn_on = !!(x); \
76 if (__builtin_constant_p(__ret_warn_on)) { \
80 if (unlikely(__ret_warn_on)) \
83 unlikely(__ret_warn_on); \
88 #include <asm-generic/bug.h>