diff options
| author | Eugen Wissner <belka@caraus.de> | 2017-09-19 06:16:43 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2017-09-19 06:16:43 +0200 |
| commit | 7445d42ad49f19b3251687f29330b38d670627af (patch) | |
| tree | b593cbfdfd8664ab269a95aee8cf7c880de88b01 | |
| parent | 14f91b6942a0d5e5ef7556c79dbbbe3ac9c6a80a (diff) | |
| download | tanya-7445d42ad49f19b3251687f29330b38d670627af.tar.gz | |
Add thrd_current for x86-64 linux
| -rw-r--r-- | arch/x64/linux/concurrency/thread.S | 8 |
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 |
