import preliminary ppc work by rdp.
[musl] / src / setjmp / ppc / setjmp.S
1 #include <bits/asm.h>
2         .global __setjmp
3         .global _setjmp
4         .global setjmp
5         .type   __setjmp,@function
6         .type   _setjmp,@function
7         .type   setjmp,@function
8 __setjmp:
9 _setjmp:
10 setjmp:
11         mflr    r11
12         mfcr    r12
13         mr      r10, r1
14         mr      r9, r2
15         stmw    r8, 0(r3)               // save r8-r31
16         li      r3,0
17         blr
18