restore use of .type in asm, but use modern @function (vs %function)
[musl] / src / setjmp / i386 / longjmp.s
1 .global _longjmp
2 .global longjmp
3 .type _longjmp,@function
4 .type longjmp,@function
5 _longjmp:
6 longjmp:
7         mov  4(%esp),%edx
8         mov  8(%esp),%eax
9         test    %eax,%eax
10         jnz 1f
11         inc     %eax
12 1:
13         mov   (%edx),%ebx
14         mov  4(%edx),%esi
15         mov  8(%edx),%edi
16         mov 12(%edx),%ebp
17         mov 16(%edx),%ecx
18         mov     %ecx,%esp
19         mov 20(%edx),%ecx
20         jmp *%ecx