fix reversed argument order x86_64 sigsetjmp's call to sigprocmask
authorRich Felker <dalias@aerifal.cx>
Mon, 22 Apr 2013 14:17:56 +0000 (10:17 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 22 Apr 2013 14:17:56 +0000 (10:17 -0400)
this caused sigsetjmp not to save the signal mask but instead to
clobber it with whatever happened to be in the sigjmb_buf prior to the
call.

src/signal/x86_64/sigsetjmp.s

index 94d7148..dc38f03 100644 (file)
@@ -6,8 +6,8 @@ sigsetjmp:
        movq %rsi,64(%rdi)
        jz 1f
        pushq %rdi
-       leaq 72(%rdi),%rsi
-       xorl %edx,%edx
+       leaq 72(%rdi),%rdx
+       xorl %esi,%esi
        movl $2,%edi
        call sigprocmask
        popq %rdi