aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/sysdeps/lemon/generic/thread_entry.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mlibc/sysdeps/lemon/generic/thread_entry.S')
-rw-r--r--lib/mlibc/sysdeps/lemon/generic/thread_entry.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/mlibc/sysdeps/lemon/generic/thread_entry.S b/lib/mlibc/sysdeps/lemon/generic/thread_entry.S
new file mode 100644
index 0000000..51e703b
--- /dev/null
+++ b/lib/mlibc/sysdeps/lemon/generic/thread_entry.S
@@ -0,0 +1,11 @@
+
+.section .text
+.global __mlibc_start_thread
+__mlibc_start_thread:
+ pop %rdi
+ pop %rsi
+ pop %rdx
+ call __mlibc_enter_thread
+
+.section .note.GNU-stack,"",%progbits
+