From 7445d42ad49f19b3251687f29330b38d670627af Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Tue, 19 Sep 2017 06:16:43 +0200 Subject: [PATCH] Add thrd_current for x86-64 linux --- arch/x64/linux/concurrency/thread.S | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 arch/x64/linux/concurrency/thread.S 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