diff options
Diffstat (limited to 'src/signal/ppc/sigsetjmp.S')
-rw-r--r-- | src/signal/ppc/sigsetjmp.S | 12 |
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 |