home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / arch / blackfin / include / asm / bug.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-12-24  |  301 b   |  18 lines

  1. #ifndef _BLACKFIN_BUG_H
  2. #define _BLACKFIN_BUG_H
  3.  
  4. #ifdef CONFIG_BUG
  5. #define HAVE_ARCH_BUG
  6.  
  7. #define BUG() do { \
  8.     dump_bfin_trace_buffer(); \
  9.     printk(KERN_EMERG "BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \
  10.     panic("BUG!"); \
  11. } while (0)
  12.  
  13. #endif
  14.  
  15. #include <asm-generic/bug.h>
  16.  
  17. #endif
  18.