- Timestamp:
- 2005-12-14T20:34:15Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dc747e3
- Parents:
- d91e54b
- Location:
- arch
- Files:
-
- 2 edited
-
ia32/include/debug.h (modified) (1 diff)
-
mips32/include/debug.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/include/debug.h
rd91e54b r3fc03fd 32 32 #include <arch/asm.h> 33 33 34 /** Return caller of this function35 *36 * @param first_arg First argument of the function37 */38 #define CALLER(first_arg) ((__address *) &first_arg)[-1];39 40 34 #define HERE get_ip() 41 35 -
arch/mips32/include/debug.h
rd91e54b r3fc03fd 43 43 #define ___intmode() asm volatile ( "\t.word\t0x29\n"); 44 44 45 /** Return current IP address */46 static inline __address * _get_ra()47 {48 __address *ip;49 50 __asm__ volatile (51 "mov %%31, %0"52 : "=r" (ip)53 );54 return ip;55 }56 #define CALLER(first_arg) (_get_ra())57 58 45 59 46 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
