diff options
| author | Wolfgang Denk <[email protected]> | 2006-09-03 18:13:21 +0200 |
|---|---|---|
| committer | Wolfgang Denk <[email protected]> | 2006-09-03 18:13:21 +0200 |
| commit | fc43de0d4a3903e6e3bfbf2fcab8eab6c739481d (patch) | |
| tree | 6a5a50d4d0f29649ec3d53881b61bcf0b40a53fe /include/common.h | |
| parent | 7d0432c9e4958f97957cee36d4803e5c0b194e20 (diff) | |
| parent | bfdfd7c26c39661a8ff542d22ed01bc02e303aea (diff) | |
Merge with /home/wd/git/u-boot/master
Diffstat (limited to 'include/common.h')
| -rw-r--r-- | include/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index 9a19001c18d..bee2fb70224 100644 --- a/include/common.h +++ b/include/common.h @@ -109,6 +109,12 @@ typedef volatile unsigned char vu_char; #define debugX(level,fmt,args...) #endif /* DEBUG */ +#define BUG() do { \ + printf("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __FUNCTION__); \ + panic("BUG!"); \ +} while (0) +#define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0) + typedef void (interrupt_handler_t)(void *); #include <asm/u-boot.h> /* boot information for Linux kernel */ |
