home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / include / asm-arm / bug.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-08-11  |  406 b   |  24 lines

  1. #ifndef _ASMARM_BUG_H
  2. #define _ASMARM_BUG_H
  3.  
  4. #ifdef CONFIG_BUG
  5. #ifdef CONFIG_DEBUG_BUGVERBOSE
  6. extern void __bug(const char *file, int line, void *data) __attribute__((noreturn));
  7.  
  8. /* give file/line information */
  9. #define BUG()        __bug(__FILE__, __LINE__, NULL)
  10.  
  11. #else
  12.  
  13. /* this just causes an oops */
  14. #define BUG()        (*(int *)0 = 0)
  15.  
  16. #endif
  17.  
  18. #define HAVE_ARCH_BUG
  19. #endif
  20.  
  21. #include <asm-generic/bug.h>
  22.  
  23. #endif
  24.