1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-30 02:27:38 +01:00

Fix setcontext for amd64 freebsd

This commit is contained in:
Konstantin Belousov 2010-04-03 18:28:31 +03:00
parent ad97600f75
commit 31ece3eaa1

View file

@ -63,11 +63,11 @@ _Ux86_64_setcontext:
/* restore signal mask */ /* restore signal mask */
pushq %rdi pushq %rdi
xorl %edx,%edx xorl %edx,%edx
movq UC_SIGMASK(%rdi),%rsi leaq UC_SIGMASK(%rdi),%rsi
movl $3,%edi/* SIG_SETMASK */ movl $3,%edi/* SIG_SETMASK */
movl $SYS_sigprocmask,%eax movl $SYS_sigprocmask,%eax
movq %rcx,%r10 movq %rcx,%r10
sysenter syscall
popq %rdi popq %rdi
/* restore fp state */ /* restore fp state */