Changeset 3d6beaa in mainline


Ignore:
Timestamp:
2010-05-22T22:10:51Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b8230b9
Parents:
4bd675d
Message:

get rid of get_ip()

Location:
kernel/arch
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/abs32le/include/asm.h

    r4bd675d r3d6beaa  
    182182}
    183183
    184 static inline uintptr_t *get_ip()
    185 {
    186         /* On real hardware this returns the current instruction
    187            pointer value. The value certainly changes with each
    188            instruction, but it can be still used to identify
    189            a specific function. */
    190        
    191         return 0;
    192 }
    193 
    194184#endif
    195185
  • kernel/arch/amd64/include/asm.h

    r4bd675d r3d6beaa  
    332332}
    333333
    334 static inline uintptr_t * get_ip()
    335 {
    336         uintptr_t *ip;
    337        
    338         asm volatile (
    339                 "mov %%rip, %[ip]"
    340                 : [ip] "=r" (ip)
    341         );
    342        
    343         return ip;
    344 }
    345 
    346334/** Invalidate TLB Entry.
    347335 *
  • kernel/arch/ia32/include/asm.h

    r4bd675d r3d6beaa  
    362362}
    363363
    364 /** Return current IP address */
    365 static inline uintptr_t * get_ip()
    366 {
    367         uintptr_t *ip;
    368        
    369         asm volatile (
    370                 "mov %%eip, %[ip]"
    371                 : [ip] "=r" (ip)
    372         );
    373        
    374         return ip;
    375 }
    376 
    377364/** Invalidate TLB Entry.
    378365 *
Note: See TracChangeset for help on using the changeset viewer.