2 Copyright © 2015, The AROS Development Team. All rights reserved.
5 Desc: ANSI C function sigsetjmp()
9 #include "aros/x86_64/asm.h"
13 .globl AROS_CDEFNAME(sigsetjmp)
14 _FUNCTION
(AROS_CDEFNAME
(sigsetjmp
))
16 AROS_CDEFNAME
(sigsetjmp
):
17 /* Save stack pointer and all registers into env */
18 mov
%rbx
,8(%rdi
) /* %ebx */
19 mov
%rcx
,16(%rdi
) /* %ecx */
20 mov
%rdx
,24(%rdi
) /* %edx */
21 mov
%rsi
,32(%rdi
) /* %esi */
22 mov
%rdi
,40(%rdi
) /* %edi */
23 mov
%rbp
,48(%rdi
) /* %ebp */
32 mov
%rsp
,120(%rdi
) /* %esp */
34 mov retaddr
(%rsp
),%rax
/* Save return address (%esp has changed) */
37 xor %rax
,%rax
/* Return 0 */