Blame view

include/asm-arm/bug.h 389 Bytes
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
  #ifndef _ASMARM_BUG_H
  #define _ASMARM_BUG_H
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
3

c8538a7aa   Matt Mackall   [PATCH] remove al...
4
  #ifdef CONFIG_BUG
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
5
  #ifdef CONFIG_DEBUG_BUGVERBOSE
7174d8526   Nicolas Pitre   [ARM] 3983/2: rem...
6
  extern void __bug(const char *file, int line) __attribute__((noreturn));
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
7
8
  
  /* give file/line information */
7174d8526   Nicolas Pitre   [ARM] 3983/2: rem...
9
  #define BUG()		__bug(__FILE__, __LINE__)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
10
11
12
13
14
15
16
17
18
  
  #else
  
  /* this just causes an oops */
  #define BUG()		(*(int *)0 = 0)
  
  #endif
  
  #define HAVE_ARCH_BUG
c8538a7aa   Matt Mackall   [PATCH] remove al...
19
  #endif
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
20
21
22
  #include <asm-generic/bug.h>
  
  #endif