about summary refs log tree commit diff
path: root/src/signal/i386/sigsetjmp.s
blob: 1d24b6f78f384d7cb2fab5698f7b8fb02c7142d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.global sigsetjmp
.global __sigsetjmp
.type sigsetjmp,@function
.type __sigsetjmp,@function
sigsetjmp:
__sigsetjmp:
	mov 8(%esp),%ecx
	jecxz 1f

	mov 4(%esp),%eax
	popl 24(%eax)
	mov %ebx,28+8(%eax)
	mov %eax,%ebx

	call setjmp

	pushl 24(%ebx)
	mov %ebx,4(%esp)
	mov %eax,8(%esp)
	mov 28+8(%ebx),%ebx

.hidden __sigsetjmp_tail
	jmp __sigsetjmp_tail

1:	jmp setjmp