X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fsetjmp%2Fi386%2Flongjmp.s;h=b139d9fe7874c035e409dde6a8893e608f34f38d;hp=c1a956c3a121281618631f61d5e076086c11433d;hb=1e4f1cf154d18d2bd13cd4524a8bbae6786efd02;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 diff --git a/src/setjmp/i386/longjmp.s b/src/setjmp/i386/longjmp.s index c1a956c3..b139d9fe 100644 --- a/src/setjmp/i386/longjmp.s +++ b/src/setjmp/i386/longjmp.s @@ -1,22 +1,18 @@ .global _longjmp .global longjmp -.type _longjmp,%function -.type longjmp,%function _longjmp: longjmp: - movl 4(%esp),%edx - movl 8(%esp),%eax - testl %eax,%eax - jnz .L0 - incl %eax -.L0: - movl (%edx),%ebx - movl 4(%edx),%esi - movl 8(%edx),%edi - movl 12(%edx),%ebp - movl 16(%edx),%ecx - movl %ecx,%esp - movl 20(%edx),%ecx + mov 4(%esp),%edx + mov 8(%esp),%eax + test %eax,%eax + jnz 1f + inc %eax +1: + mov (%edx),%ebx + mov 4(%edx),%esi + mov 8(%edx),%edi + mov 12(%edx),%ebp + mov 16(%edx),%ecx + mov %ecx,%esp + mov 20(%edx),%ecx jmp *%ecx -.size _longjmp,.-_longjmp -.size longjmp,.-longjmp