summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2017-09-19 06:16:43 +0200
committerEugen Wissner <belka@caraus.de>2017-09-19 06:16:43 +0200
commit7445d42ad49f19b3251687f29330b38d670627af (patch)
treeb593cbfdfd8664ab269a95aee8cf7c880de88b01 /arch
parent14f91b6942a0d5e5ef7556c79dbbbe3ac9c6a80a (diff)
downloadtanya-7445d42ad49f19b3251687f29330b38d670627af.tar.gz
Add thrd_current for x86-64 linux
Diffstat (limited to 'arch')
-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