about summary refs log tree commit diff
path: root/src/signal/ppc/sigsetjmp.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/signal/ppc/sigsetjmp.S
parent1e717ea3d2a864e00e507f1a70a892c551955f1b (diff)
downloadmusl-7669d1e334e6b96455eece78da43bf830b93d697.tar.gz
musl-7669d1e334e6b96455eece78da43bf830b93d697.tar.xz
musl-7669d1e334e6b96455eece78da43bf830b93d697.zip
import preliminary ppc work by rdp.
Diffstat (limited to 'src/signal/ppc/sigsetjmp.S')
-rw-r--r--src/signal/ppc/sigsetjmp.S12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/signal/ppc/sigsetjmp.S b/src/signal/ppc/sigsetjmp.S
new file mode 100644
index 00000000..527ef8e4
--- /dev/null
+++ b/src/signal/ppc/sigsetjmp.S
@@ -0,0 +1,12 @@
+#include <bits/asm.h>
+        .global sigsetjmp
+        .type sigsetjmp,@function
+sigsetjmp:
+        lwz     r4, 64*4-2*4(r3)        // Second last long.
+        cmpi    r4, 0, r4, 0
+        bne     r4, 1f
+        addi    r5, r3, 64*4-1*4        // Address of last long.
+        li      r4, 0
+        li      r3, 2
+        bl      sigprocmask
+1:      b       setjmp