Go to the documentation of this file.
4 #include <linux/kernel.h>
13 #define HAVE_ARCH_WARN_ON
16 #define PARISC_BUG_BREAK_ASM "break 0x1f, 0x1fff"
17 #define PARISC_BUG_BREAK_INSN 0x03ffe01f
19 #if defined(CONFIG_64BIT)
20 #define ASM_WORD_INSN ".dword\t"
22 #define ASM_WORD_INSN ".word\t"
25 #ifdef CONFIG_DEBUG_BUGVERBOSE
29 "1:\t" PARISC_BUG_BREAK_ASM "\n" \
30 "\t.pushsection __bug_table,\"a\"\n" \
31 "2:\t" ASM_WORD_INSN "1b, %c0\n" \
32 "\t.short %c1, %c2\n" \
35 : : "i" (__FILE__), "i" (__LINE__), \
36 "i" (0), "i" (sizeof(struct bug_entry)) ); \
43 asm volatile(PARISC_BUG_BREAK_ASM : : ); \
48 #ifdef CONFIG_DEBUG_BUGVERBOSE
49 #define __WARN_TAINT(taint) \
52 "1:\t" PARISC_BUG_BREAK_ASM "\n" \
53 "\t.pushsection __bug_table,\"a\"\n" \
54 "2:\t" ASM_WORD_INSN "1b, %c0\n" \
55 "\t.short %c1, %c2\n" \
58 : : "i" (__FILE__), "i" (__LINE__), \
59 "i" (BUGFLAG_TAINT(taint)), \
60 "i" (sizeof(struct bug_entry)) ); \
63 #define __WARN_TAINT(taint) \
66 "1:\t" PARISC_BUG_BREAK_ASM "\n" \
67 "\t.pushsection __bug_table,\"a\"\n" \
68 "2:\t" ASM_WORD_INSN "1b\n" \
72 : : "i" (BUGFLAG_TAINT(taint)), \
73 "i" (sizeof(struct bug_entry)) ); \
78 #define WARN_ON(x) ({ \
79 int __ret_warn_on = !!(x); \
80 if (__builtin_constant_p(__ret_warn_on)) { \
84 if (unlikely(__ret_warn_on)) \
87 unlikely(__ret_warn_on); \