| ... | ... | @@ -162,7 +162,7 @@ pub fn initTLS() void { |
| 162 | 162 | |
| 163 | 163 | if (tls_phdr) |phdr| { |
| 164 | 164 | // If the cpu is arm-based, check if it supports the TLS register |
| 165 | | if (builtin.arch == builtin.Arch.arm and hwcap & std.os.linux.HWCAP_TLS == 0) { |
| 165 | if (builtin.arch == builtin.Arch.arm and at_hwcap & std.os.linux.HWCAP_TLS == 0) { |
| 166 | 166 | // If the CPU does not support TLS via a coprocessor register, |
| 167 | 167 | // a kernel helper function can be used instead on certain linux kernels. |
| 168 | 168 | // See linux/arch/arm/include/asm/tls.h and musl/src/thread/arm/__set_thread_area.c. |