diff options
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 bd41ae179..bee2fb702 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 |