update tls in std lib for lack of sub-arch

This commit is contained in:
Andrew Kelley 2020-02-19 22:09:35 -05:00
parent 7c298c8c17
commit 3c76e5e33d
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -152,7 +152,7 @@ pub fn setThreadPointer(addr: usize) void {
: [addr] "r" (addr)
);
},
.arm => |arm| {
.arm => {
const rc = std.os.linux.syscall1(std.os.linux.SYS_set_tls, addr);
assert(rc == 0);
},