version 1.14.8.2, 2002/01/08 00:25:33 |
version 1.15, 2001/08/23 06:17:00 |
|
|
* \ |
* \ |
* selfpc = pc pushed by mcount call \ |
* selfpc = pc pushed by mcount call \ |
*/ \ |
*/ \ |
__asm__ __volatile__("movl 4(%%ebp),%0" : "=r" (selfpc)); \ |
__asm__("movl 4(%%ebp),%0" : "=r" (selfpc)); \ |
/* \ |
/* \ |
* frompcindex = pc pushed by call into self. \ |
* frompcindex = pc pushed by call into self. \ |
*/ \ |
*/ \ |
__asm__ __volatile__("movl (%%ebp),%0;movl 4(%0),%0" \ |
__asm__("movl (%%ebp),%0;movl 4(%0),%0" : "=r" (frompcindex)); \ |
: "=r" (frompcindex)); \ |
|
_mcount((u_long)frompcindex, (u_long)selfpc); \ |
_mcount((u_long)frompcindex, (u_long)selfpc); \ |
} |
} |
|
|