/kernel/trunk/generic/include/debug.h |
---|
30,8 → 30,21 |
#define __DEBUG_H__ |
#include <panic.h> |
#include <arch/debug.h> |
#include <arch.h> |
#ifndef CALLER |
/** Default (returns 0) macro for getting address of calling function |
* @param x First argument of the called function |
*/ |
# define CALLER(x) ((__address *) 0) |
#endif |
#ifndef HERE |
/** Current Instruction Pointer address */ |
# define HERE ((__address *)0) |
#endif |
/** Debugging ASSERT macro |
* |
* If CONFIG_DEBUG is set, the ASSERT() macro |
/kernel/trunk/generic/src/synch/spinlock.c |
---|
63,7 → 63,7 |
void spinlock_lock(spinlock_t *sl) |
{ |
count_t i = 0; |
__address caller = ((__address *) &sl)[-1]; |
__address caller = CALLER(sl); |
char *symbol; |
bool deadlock_reported = false; |
/kernel/trunk/generic/src/interrupt/interrupt.c |
---|
111,7 → 111,7 |
} |
static cmd_info_t exc_info = { |
.name = "exc_print", |
.name = "pexc", |
.description = "Print exception table", |
.func = exc_print_cmd, |
.help = NULL, |