diff options
author | 2020-07-14 16:48:13 +0000 | |
---|---|---|
committer | 2020-07-14 16:48:13 +0000 | |
commit | 874055c7f02823920709838a1b984071d59cc88d (patch) | |
tree | 39bd5d19eb3aac1ddd25063263eef8849443f77f /lib/libssl/ssl_lib.c | |
parent | getopt(3) returns an int so don't use a char to store its return value. (diff) | |
download | wireguard-openbsd-874055c7f02823920709838a1b984071d59cc88d.tar.xz wireguard-openbsd-874055c7f02823920709838a1b984071d59cc88d.zip |
Fix TIB/TCB on powerpc64. Some bright sould decided that the TCB should
be 8 bytes in the 64-bit ABI just like in the 32-bit ABI. But that means
there is no "spare" word in the TCB that we can use to store a pointer
to our struct pthread. So we have to treat powerpc64 special.
Also recognize that the thread pointer points 0x7000 bytes after the TCB.
Since the TCB is 8 bytes this means that TCB_OFFSET should be 0x7008.
Pointed out by guenther@; ok deraadt@
Diffstat (limited to 'lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions