1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #define mcount_internal __mcount_internal
- #define _MCOUNT_DECL(frompc, selfpc) \
- static void __attribute_used__ mcount_internal (u_long frompc, u_long selfpc)
- #define MCOUNT asm(\
- ".align 4\n\t" \
- ".globl _mcount\n\t" \
- ".type _mcount,@function\n" \
- "_mcount:\n\t" \
- "mov.l r4, @-r15\n\t" \
- "mov.l r5, @-r15\n\t" \
- "mov.l r6, @-r15\n\t" \
- "mov.l r7, @-r15\n\t" \
- "sts.l pr, @-r15\n\t" \
- "sts pr, r5\n\t" \
- "bsr __mcount_internal\n\t" \
- " mov.l @(5*4,r15), r4\n\t" \
- "lds.l @r15+, pr\n\t" \
- "mov.l @r15+, r7\n\t" \
- "mov.l @r15+, r6\n\t" \
- "mov.l @r15+, r5\n\t" \
- "rts\n\t" \
- " mov.l @r15+, r4\n\t" \
- ".size _mcount,.-_mcount;\n\t" \
- ".weak mcount;\n\t" \
- " mcount = _mcount;");
|