diff options
author | Detlev Zundel <dzu@pollux.denx.de> | 2006-09-01 11:59:23 +0200 |
---|---|---|
committer | Detlev Zundel <dzu@pollux.denx.de> | 2006-09-01 11:59:23 +0200 |
commit | 43835aac4803d459dd73fabce09b27a826a381d7 (patch) | |
tree | f6ef4369b99b1a2d3833012691e9bf08c21c469d /include/common.h | |
parent | e8143e72e1cbe2f771258533e26ee2105a8768a7 (diff) | |
download | u-boot-imx-43835aac4803d459dd73fabce09b27a826a381d7.zip u-boot-imx-43835aac4803d459dd73fabce09b27a826a381d7.tar.gz u-boot-imx-43835aac4803d459dd73fabce09b27a826a381d7.tar.bz2 |
Added interrupt handling capabilities for mpc5xxx processors.
Also added Linux like BUG() macros.
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 9a19001..bee2fb7 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 */ |