summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/x64/linux/concurrency/thread.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x64/linux/concurrency/thread.S b/arch/x64/linux/concurrency/thread.S
new file mode 100644
index 0000000..c211d76
--- /dev/null
+++ b/arch/x64/linux/concurrency/thread.S
@@ -0,0 +1,8 @@
+ .text
+
+ .globl thrd_current
+ .type thrd_current, @function
+
+thrd_current:
+ mov %fs:0, %rax
+ ret