about summary refs log tree commit diff
path: root/src/setjmp/i386/longjmp.s
blob: 8188f06bcd7f01d9518881effd14dfcce59e0614 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.global _longjmp
.global longjmp
.type _longjmp,@function
.type longjmp,@function
_longjmp:
longjmp:
	mov  4(%esp),%edx
	mov  8(%esp),%eax
	cmp       $1,%eax
	adc       $0, %al
	mov   (%edx),%ebx
	mov  4(%edx),%esi
	mov  8(%edx),%edi
	mov 12(%edx),%ebp
	mov 16(%edx),%esp
	jmp *20(%edx)