Architectural Support: x86_64 (#37)
[lunaix-os.git] / lunaix-os / usr / libc / arch / i386 / trampoline.S
index 9261e4bebaf14b2b423cbcfaf611d162575b9b38..a2d84b6f8f72a8b64b2688ae3f305a16c2706fd6 100644 (file)
         
         movl $__SYSCALL_sigreturn, %eax
         popl %ebx
+        int $33
+
+    .global th_trampoline
+    th_trampoline:
+        movl (%esp), %eax
+        movl 4(%esp), %ebx
+        pushl %ebx
+
+        call *(%eax)
+
+        movl %eax, %ebx
+        movl $__SYSCALL_th_exit, %eax
         int $33
\ No newline at end of file