diff options
author | Helge Deller <deller@gmx.de> | 2006-12-16 16:48:26 (GMT) |
---|---|---|
committer | Kyle McMartin <kyle@athena.road.mcmartin.ca> | 2007-02-17 05:53:19 (GMT) |
commit | e38287647467188d8b8d1adadc6ab26267758151 (patch) | |
tree | 3a8bb7d4c3382a121b22c4e6922a58511d05cab7 /include/asm-parisc/bug.h | |
parent | 6891f8a1135b964f8ef30521d1473d5d137af0fa (diff) | |
download | linux-e38287647467188d8b8d1adadc6ab26267758151.tar.xz |
[PARISC] fix build for WARN_ON() when CONFIG_DEBUG_BUGVERBOSE=y
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Diffstat (limited to 'include/asm-parisc/bug.h')
-rw-r--r-- | include/asm-parisc/bug.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asm-parisc/bug.h b/include/asm-parisc/bug.h index 8dd199f..cfe39a2 100644 --- a/include/asm-parisc/bug.h +++ b/include/asm-parisc/bug.h @@ -43,6 +43,7 @@ } while(0) #endif +#ifdef CONFIG_DEBUG_BUGVERBOSE #define __WARN() \ do { \ asm volatile("\n" \ @@ -56,6 +57,20 @@ "i" (BUGFLAG_WARNING), \ "i" (sizeof(struct bug_entry)) ); \ } while(0) +#else +#define __WARN() \ + do { \ + asm volatile("\n" \ + "1:\t" PARISC_BUG_BREAK_ASM "\n" \ + "\t.pushsection __bug_table,\"a\"\n" \ + "2:\t" ASM_ULONG_INSN " 1b\n" \ + "\t.short %c0\n" \ + "\t.org 2b+%c1\n" \ + "\t.popsection" \ + : : "i" (BUGFLAG_WARNING), \ + "i" (sizeof(struct bug_entry)) ); \ + } while(0) +#endif #define WARN_ON(x) ({ \ |