common.h (859f24350e6e4313626f85161dd03f025a4dac59) | common.h (cfa460adfdefcc30d104e1a9ee44994ee349bb7b) |
---|---|
1/* 2 * (C) Copyright 2000-2007 3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 * 5 * See file CREDITS for list of people who contributed to this 6 * project. 7 * 8 * This program is free software; you can redistribute it and/or --- 105 unchanged lines hidden (view full) --- 114#ifdef DEBUG 115#define debug(fmt,args...) printf (fmt ,##args) 116#define debugX(level,fmt,args...) if (DEBUG>=level) printf(fmt,##args); 117#else 118#define debug(fmt,args...) 119#define debugX(level,fmt,args...) 120#endif /* DEBUG */ 121 | 1/* 2 * (C) Copyright 2000-2007 3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 * 5 * See file CREDITS for list of people who contributed to this 6 * project. 7 * 8 * This program is free software; you can redistribute it and/or --- 105 unchanged lines hidden (view full) --- 114#ifdef DEBUG 115#define debug(fmt,args...) printf (fmt ,##args) 116#define debugX(level,fmt,args...) if (DEBUG>=level) printf(fmt,##args); 117#else 118#define debug(fmt,args...) 119#define debugX(level,fmt,args...) 120#endif /* DEBUG */ 121 |
122#ifndef BUG |
|
122#define BUG() do { \ 123 printf("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __FUNCTION__); \ 124 panic("BUG!"); \ 125} while (0) 126#define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0) | 123#define BUG() do { \ 124 printf("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __FUNCTION__); \ 125 panic("BUG!"); \ 126} while (0) 127#define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0) |
128#endif /* BUG */ |
|
127 128typedef void (interrupt_handler_t)(void *); 129 130#include <asm/u-boot.h> /* boot information for Linux kernel */ 131#include <asm/global_data.h> /* global data used for startup functions */ 132 133/* 134 * enable common handling for all TQM8xxL/M boards: --- 570 unchanged lines hidden --- | 129 130typedef void (interrupt_handler_t)(void *); 131 132#include <asm/u-boot.h> /* boot information for Linux kernel */ 133#include <asm/global_data.h> /* global data used for startup functions */ 134 135/* 136 * enable common handling for all TQM8xxL/M boards: --- 570 unchanged lines hidden --- |