Changeset a3ac9a7 in mainline for arch/ia32/include/asm.h


Ignore:
Timestamp:
2005-12-10T12:12:09Z (19 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/ia32/include/asm.h

    r208189f ra3ac9a7  
    224224}
    225225
     226/** Return current IP address */
     227static inline __address * get_ip()
     228{
     229        __address *ip;
     230
     231        __asm__ volatile (
     232                "mov %%eip, %0"
     233                : "=r" (ip)
     234                );
     235        return ip;
     236}
     237
    226238#endif
Note: See TracChangeset for help on using the changeset viewer.