ack/mach/powerpc/libem/ret.s

13 lines
231 B
ArmAsm
Raw Normal View History

2007-11-02 18:56:58 +00:00
.sect .text
2007-11-02 18:56:58 +00:00
! Standard boilerplate for returning from functions.
.define .ret
.ret:
lwz r0, 4(fp)
mtspr lr, r0
lwz r0, 0(fp) ! our stack frame becomes invalid as soon as...
addi sp, fp, 8 ! ...we change sp
mr fp, r0
blr