authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-09-04 14:44:03-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-09-04 14:44:16-04:00
loga7fd14096c8dbc9cb5ed9a3731753b24e32d5757
treed70090d91c175986b7ce07904d650771477f0fbf
parent090f2ffb820ab10773322636d3c940bbfd6028be
signaturelock-open Commit is signed but in an unrecognized format.

fix typo with tls initialization

I tested that hello world cross compiles to armv7 now. closes #3167

1 files changed, 1 insertions(+), 1 deletions(-)

std/os/linux/tls.zig+1-1
......@@ -162,7 +162,7 @@ pub fn initTLS() void {
162162
163163 if (tls_phdr) |phdr| {
164164 // 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) {
166166 // If the CPU does not support TLS via a coprocessor register,
167167 // a kernel helper function can be used instead on certain linux kernels.
168168 // See linux/arch/arm/include/asm/tls.h and musl/src/thread/arm/__set_thread_area.c.