shithub: scc

ref: 7d06d1d348ce9fb9dc585d81f146e12193be85e4
dir: /src/libc/arch/i386/longjmp.s/

View raw version
	.file	"longjmp.s"

	.text
	.globl	longjmp,_longjmp
_longjmp:
longjmp:
	mov  	4(%esp),%edx
	mov  	8(%esp),%eax
	test    %eax,%eax
	jnz 	1f
	inc     %eax
1:
	movl   	(%edx),%ebx
	movl  	4(%edx),%ecx
	movl 	8(%edx),%esi
	movl 	12(%edx),%edi
	movl	16(%edx),%ebp
	movl	20(%edx),%esp
	pushl   24(%edx)
	popl	%edx
	jmp 	*%edx