mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
Initial import into SourceForge CVS
git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14685 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
35
library/profile_mcount.S
Normal file
35
library/profile_mcount.S
Normal file
@ -0,0 +1,35 @@
|
||||
.globl _mcount
|
||||
.type _mcount,@function
|
||||
_mcount:
|
||||
stwu r1,-64(r1)
|
||||
stw r3,16(r1)
|
||||
stw r4,20(r1)
|
||||
stw r5,24(r1)
|
||||
stw r6,28(r1)
|
||||
stw r7,32(r1)
|
||||
stw r8,36(r1)
|
||||
stw r9,40(r1)
|
||||
stw r10,44(r1)
|
||||
|
||||
mflr r4
|
||||
stw r4,48(r1)
|
||||
lwz r3,68(r1)
|
||||
|
||||
bl __mcount
|
||||
lwz r3,68(r1)
|
||||
mtlr r3
|
||||
lwz r4,48(r1)
|
||||
mtctr r4
|
||||
|
||||
lwz r3,16(r1)
|
||||
lwz r4,20(r1)
|
||||
lwz r5,24(r1)
|
||||
lwz r6,28(r1)
|
||||
lwz r7,32(r1)
|
||||
lwz r8,36(r1)
|
||||
lwz r9,40(r1)
|
||||
lwz r10,44(r1)
|
||||
addi r1,r1,64
|
||||
bctr
|
||||
_mcount_end:
|
||||
.size _mcount,_mcount_end-_mcount
|
||||
Reference in New Issue
Block a user