diff options
author | Chris Zankel <czankel@tensilica.com> | 2006-12-10 05:18:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-10 12:55:39 -0500 |
commit | fd43fe19b830d6cd0eba08a6c6a5f71a6bd9c1b0 (patch) | |
tree | 5225910274cbf362143a80b95b6b38c4a7d22e6d /include/asm-xtensa/bug.h | |
parent | 5fcf7bb73f66cc1c4ad90788b0f367c4d6852b75 (diff) |
[PATCH] xtensa: fix irq and misc fixes
Update the architecture specific interrupt handling code for Xtensa to support
the new API. Use generic BUG macros in bug.h, and some minor fixes.
Signed-off-by: Chris Zankel <chris@zankel.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-xtensa/bug.h')
-rw-r--r-- | include/asm-xtensa/bug.h | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/include/asm-xtensa/bug.h b/include/asm-xtensa/bug.h index 56703659b204..3e52d72712f1 100644 --- a/include/asm-xtensa/bug.h +++ b/include/asm-xtensa/bug.h | |||
@@ -13,29 +13,6 @@ | |||
13 | #ifndef _XTENSA_BUG_H | 13 | #ifndef _XTENSA_BUG_H |
14 | #define _XTENSA_BUG_H | 14 | #define _XTENSA_BUG_H |
15 | 15 | ||
16 | #include <linux/stringify.h> | 16 | #include <asm-generic/bug.h> |
17 | |||
18 | #define ILL __asm__ __volatile__ (".byte 0,0,0\n") | ||
19 | |||
20 | #ifdef CONFIG_KALLSYMS | ||
21 | # define BUG() do { \ | ||
22 | printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ | ||
23 | ILL; \ | ||
24 | } while (0) | ||
25 | #else | ||
26 | # define BUG() do { \ | ||
27 | printk("kernel BUG!\n"); \ | ||
28 | ILL; \ | ||
29 | } while (0) | ||
30 | #endif | ||
31 | |||
32 | #define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0) | ||
33 | #define PAGE_BUG(page) do { BUG(); } while (0) | ||
34 | #define WARN_ON(condition) do { \ | ||
35 | if (unlikely((condition)!=0)) { \ | ||
36 | printk ("Warning in %s at %s:%d\n", __FUNCTION__, __FILE__, __LINE__); \ | ||
37 | dump_stack(); \ | ||
38 | } \ | ||
39 | } while (0) | ||
40 | 17 | ||
41 | #endif /* _XTENSA_BUG_H */ | 18 | #endif /* _XTENSA_BUG_H */ |