diff options
author | Stefan Roese <sr@denx.de> | 2006-09-18 10:48:03 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2006-09-18 10:48:03 +0200 |
commit | 64cd52efd1dc51a4a5a0cf10efe5362fab27de29 (patch) | |
tree | 64e046a7d8b2f0106bc387dd032734ad963f4e68 /include/common.h | |
parent | 899620c2d66d4eef3b2a0034d062e71d45d886c9 (diff) | |
parent | 854bc8da75709f13dab4cfa6e9094c0cb49b5c5a (diff) |
Merge with /home/stefan/git/u-boot/denx
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h index bd41ae179a..bee2fb7022 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 */ @@ -603,7 +609,7 @@ void show_boot_progress (int status); #endif #ifdef CONFIG_INIT_CRITICAL -#error CONFIG_INIT_CRITICAL is depracted! +#error CONFIG_INIT_CRITICAL is deprecated! #error Read section CONFIG_SKIP_LOWLEVEL_INIT in README. #endif |