diff options
author | Haibo Xu <haibo.xu@arm.com> | 2020-01-13 07:44:58 +0000 |
---|---|---|
committer | Haibo Xu <haibo.xu@arm.com> | 2020-03-09 01:04:55 +0000 |
commit | c04958e2fa456587277baef361868bddc0df9e49 (patch) | |
tree | e22cd529a5bcdf62ff3042d1236b516eab2e5e4f /pkg/abi | |
parent | ddfc7239be94fa9711df877a66a9718aabff8b96 (diff) |
Enable thread local storage support on arm64.
Linux use the task.thread.uw.tp_value field to store the
TLS pointer on arm64 platform, and we use a similar way
in gvisor to store it in the arch/State struct.
Signed-off-by: Haibo Xu <haibo.xu@arm.com>
Change-Id: Ie76b5c6d109bc27ccfd594008a96753806db7764
Diffstat (limited to 'pkg/abi')
-rw-r--r-- | pkg/abi/linux/elf.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/abi/linux/elf.go b/pkg/abi/linux/elf.go index 40f0459a0..7c9a02f20 100644 --- a/pkg/abi/linux/elf.go +++ b/pkg/abi/linux/elf.go @@ -102,4 +102,7 @@ const ( // NT_X86_XSTATE is for x86 extended state using xsave. NT_X86_XSTATE = 0x202 + + // NT_ARM_TLS is for ARM TLS register. + NT_ARM_TLS = 0x401 ) |