summaryrefslogtreecommitdiff
path: root/src/signal/ppc/sigsetjmp.S
blob: 527ef8e4af6cf8011721f788fb4351feae6230a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
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