diff options
| author | LemonBoy <thatlemon@gmail.com> | 2019-09-21 23:00:36 +0200 |
|---|---|---|
| committer | LemonBoy <thatlemon@gmail.com> | 2019-09-26 09:31:55 +0200 |
| commit | 4ebcf64864eeec6c2086826242f53eedc69275ad (patch) | |
| tree | 3002ce16fcb94c9b1e6852e9bae6eda3b1da5583 /lib/std/os/linux/tls.zig | |
| parent | 2f208330975041cdb36763fab314037e46c291fc (diff) | |
| download | zig-4ebcf64864eeec6c2086826242f53eedc69275ad.tar.gz zig-4ebcf64864eeec6c2086826242f53eedc69275ad.zip | |
Initial support for mipsel architecture¬
Diffstat (limited to 'lib/std/os/linux/tls.zig')
| -rw-r--r-- | lib/std/os/linux/tls.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/os/linux/tls.zig b/lib/std/os/linux/tls.zig index 167839570e..849a9ef405 100644 --- a/lib/std/os/linux/tls.zig +++ b/lib/std/os/linux/tls.zig @@ -137,6 +137,10 @@ pub fn setThreadPointer(addr: usize) void { : [addr] "r" (addr) ); }, + .mipsel => { + const rc = std.os.linux.syscall1(std.os.linux.SYS_set_thread_area, addr); + assert(rc == 0); + }, else => @compileError("Unsupported architecture"), } } |
