mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 19:22:47 +00:00
mips: Add TLS_DTV_OFFSET to the result of tls_get_addr_common.
Previously TLS_DTV_OFFSET was added to the offset passed to tls_get_addr_common; however, this approach matches powerpc and RISC-V and better matches the intention. Reviewed by: kib, jrtc27 Sponsored by: The University of Cambridge, Google Inc. Differential Revision: https://reviews.freebsd.org/D33347
This commit is contained in:
parent
03f6b14106
commit
23e0c0e9a3
@ -783,8 +783,7 @@ __tls_get_addr(tls_index* ti)
|
||||
char *p;
|
||||
|
||||
tls = _get_tp();
|
||||
p = tls_get_addr_common(tls, ti->ti_module, ti->ti_offset +
|
||||
TLS_DTV_OFFSET);
|
||||
p = tls_get_addr_common(tls, ti->ti_module, ti->ti_offset);
|
||||
|
||||
return (p);
|
||||
return (p + TLS_DTV_OFFSET);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user