summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/setjmp/i386/longjmp.s
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/setjmp/i386/longjmp.s')
-rw-r--r--libc-top-half/musl/src/setjmp/i386/longjmp.s16
1 files changed, 16 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/setjmp/i386/longjmp.s b/libc-top-half/musl/src/setjmp/i386/longjmp.s
new file mode 100644
index 0000000..8188f06
--- /dev/null
+++ b/libc-top-half/musl/src/setjmp/i386/longjmp.s
@@ -0,0 +1,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)