diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2008-09-16 13:48:51 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-10-11 11:18:52 -0400 |
commit | 384740dc49ea651ba350704d13ff6be9976e37fe (patch) | |
tree | a6e80cad287ccae7a86d81bfa692fc96889c88ed /arch/mips/include/asm/bug.h | |
parent | e8c7c482347574ecdd45c43e32c332d5fc2ece61 (diff) |
MIPS: Move headfiles to new location below arch/mips/include
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/bug.h')
-rw-r--r-- | arch/mips/include/asm/bug.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/mips/include/asm/bug.h b/arch/mips/include/asm/bug.h new file mode 100644 index 000000000000..7eb63de808bc --- /dev/null +++ b/arch/mips/include/asm/bug.h | |||
@@ -0,0 +1,33 @@ | |||
1 | #ifndef __ASM_BUG_H | ||
2 | #define __ASM_BUG_H | ||
3 | |||
4 | #include <asm/sgidefs.h> | ||
5 | |||
6 | #ifdef CONFIG_BUG | ||
7 | |||
8 | #include <asm/break.h> | ||
9 | |||
10 | #define BUG() \ | ||
11 | do { \ | ||
12 | __asm__ __volatile__("break %0" : : "i" (BRK_BUG)); \ | ||
13 | } while (0) | ||
14 | |||
15 | #define HAVE_ARCH_BUG | ||
16 | |||
17 | #if (_MIPS_ISA > _MIPS_ISA_MIPS1) | ||
18 | |||
19 | #define BUG_ON(condition) \ | ||
20 | do { \ | ||
21 | __asm__ __volatile__("tne $0, %0, %1" \ | ||
22 | : : "r" (condition), "i" (BRK_BUG)); \ | ||
23 | } while (0) | ||
24 | |||
25 | #define HAVE_ARCH_BUG_ON | ||
26 | |||
27 | #endif /* _MIPS_ISA > _MIPS_ISA_MIPS1 */ | ||
28 | |||
29 | #endif | ||
30 | |||
31 | #include <asm-generic/bug.h> | ||
32 | |||
33 | #endif /* __ASM_BUG_H */ | ||