path: root/sys
diff options
authorAndrew Turner <andrew@FreeBSD.org>2015-09-01 15:57:03 +0000
committerAndrew Turner <andrew@FreeBSD.org>2015-09-01 15:57:03 +0000
commit7c812942249f9289eb3b2daff64584ce9d45d1c2 (patch)
tree346389960cc5a4429dc77dd2a5e246bd949550bf /sys
parent878165d2ef412c30224e73381f44fcb4bbed38f9 (diff)
Fix how we place each objects thread local data. The code used was based
on the Variant II code, however arm64 uses Variant I. The former placed the thread pointer after the data, pointing at the thread control block, while the latter places these before said data. Because of this we need to use the size of the previous entry to calculate where to place the current entry. We also need to reserve 16 bytes at the start for the thread control block. This also fixes the value of TLS_TCB_SIZE to be correct. This is the size of two unsigned longs, i.e. 2 * 8 bytes. While here remove the bogus adjustment of the pointer in the R_AARCH64_TLS_TPREL64 case. It should be the offset of the data relative to the thread pointer, including the thread control block. Sponsored by: ABT Systems Ltd
Notes: svn path=/head/; revision=287370
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions