summaryrefslogtreecommitdiff
path: root/src/setjmp/ppc/setjmp.S
diff options
context:
space:
mode:
authorRichard Pennington <rich@pennware.com>2012-11-09 23:32:57 +0100
committerrofl0r <retnyg@gmx.net>2012-11-13 18:15:10 +0100
commit7669d1e334e6b96455eece78da43bf830b93d697 (patch)
tree6649acfaa61ec6780498b55fa8015ca4f7a6cdae /src/setjmp/ppc/setjmp.S
parent1e717ea3d2a864e00e507f1a70a892c551955f1b (diff)
downloadmusl-7669d1e334e6b96455eece78da43bf830b93d697.tar.gz
import preliminary ppc work by rdp.
Diffstat (limited to 'src/setjmp/ppc/setjmp.S')
-rw-r--r--src/setjmp/ppc/setjmp.S18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/setjmp/ppc/setjmp.S b/src/setjmp/ppc/setjmp.S
new file mode 100644
index 00000000..7d0b9ac5
--- /dev/null
+++ b/src/setjmp/ppc/setjmp.S
@@ -0,0 +1,18 @@
+#include <bits/asm.h>
+ .global __setjmp
+ .global _setjmp
+ .global setjmp
+ .type __setjmp,@function
+ .type _setjmp,@function
+ .type setjmp,@function
+__setjmp:
+_setjmp:
+setjmp:
+ mflr r11
+ mfcr r12
+ mr r10, r1
+ mr r9, r2
+ stmw r8, 0(r3) // save r8-r31
+ li r3,0
+ blr
+