Changeset a3ac9a7 in mainline for arch/mips32/include/debug.h


Ignore:
Timestamp:
2005-12-10T12:12:09Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6e716a59
Parents:
208189f
Message:

Small debug changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/include/debug.h

    r208189f ra3ac9a7  
    4343#define ___intmode()    asm volatile ( "\t.word\t0x29\n");
    4444
     45/** Return current IP address */
     46static 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
    4559#endif
Note: See TracChangeset for help on using the changeset viewer.