-/* Copyright 2011 Nicholas J. Kain, licensed GNU LGPL 2.1 or later */
+/* Copyright 2011-2012 Nicholas J. Kain, licensed under standard MIT license */
.global sigsetjmp
+.type sigsetjmp,@function
sigsetjmp:
andl %esi,%esi
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