Subversion Repositories HelenOS-historic

Rev

Rev 581 | Rev 625 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 581 Rev 622
Line 31... Line 31...
31
 
31
 
32
#include <panic.h>
32
#include <panic.h>
33
#include <arch/debug.h>
33
#include <arch/debug.h>
34
#include <arch.h>
34
#include <arch.h>
35
 
35
 
36
#ifndef CALLER
-
 
37
/**  Default (returns 0) macro for getting address of calling function
-
 
38
 *   @param x First argument of the called function
-
 
39
 */
-
 
40
#  define CALLER(x)       ((__address *) 0)
36
#define CALLER       ((__address *)__builtin_return_address(0))
41
#endif
-
 
42
 
37
 
43
#ifndef HERE
38
#ifndef HERE
44
/** Current Instruction Pointer address */
39
/** Current Instruction Pointer address */
45
#  define HERE ((__address *)0)
40
#  define HERE ((__address *)0)
46
#endif
41
#endif