mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
Added interrupt handling capabilities for mpc5xxx processors.
Also added Linux like BUG() macros.
This commit is contained in:
parent
e8143e72e1
commit
43835aac48
3 changed files with 342 additions and 15 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue