Boot framework rework (#45)
[lunaix-os.git] / lunaix-os / usr / libc / arch / i386 / trampoline.S
index 9261e4bebaf14b2b423cbcfaf611d162575b9b38..3ff23e27adc6463df2d75beb436b481ffeb3b6dd 100644 (file)
         
         movl $__SYSCALL_sigreturn, %eax
         popl %ebx
+        int $33
+
+    .global th_trampoline
+    th_trampoline:
+        movl (%esp), %eax
+        movl 4(%esp), %ebx
+        pushl %ebx
+
+        calll *%eax
+
+        movl %eax, %ebx
+        movl $__SYSCALL_th_exit, %eax
         int $33
\ No newline at end of file