diff options
| author | daurnimator <quae@daurnimator.com> | 2020-03-02 23:30:53 +1100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-31 10:16:20 -0400 |
| commit | 63409cf422c71fee64c55f2b77999ee94366400f (patch) | |
| tree | 812702ccc1f2f89150b2a6763cd1801e1deb2b39 /lib/std/os/linux/tls.zig | |
| parent | 839d85e4405aef4856d1a35a6580226e997cc369 (diff) | |
| download | zig-63409cf422c71fee64c55f2b77999ee94366400f.tar.gz zig-63409cf422c71fee64c55f2b77999ee94366400f.zip | |
std: linux syscall numbers are now an extensible enum
Diffstat (limited to 'lib/std/os/linux/tls.zig')
| -rw-r--r-- | lib/std/os/linux/tls.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/os/linux/tls.zig b/lib/std/os/linux/tls.zig index 1c57fd06b9..e7d836eff6 100644 --- a/lib/std/os/linux/tls.zig +++ b/lib/std/os/linux/tls.zig @@ -122,7 +122,7 @@ pub fn setThreadPointer(addr: usize) void { .seg_not_present = 0, .useable = 1, }; - const rc = std.os.linux.syscall1(std.os.linux.SYS_set_thread_area, @ptrToInt(&user_desc)); + const rc = std.os.linux.syscall1(.set_thread_area, @ptrToInt(&user_desc)); assert(rc == 0); const gdt_entry_number = user_desc.entry_number; @@ -135,7 +135,7 @@ pub fn setThreadPointer(addr: usize) void { ); }, .x86_64 => { - const rc = std.os.linux.syscall2(std.os.linux.SYS_arch_prctl, std.os.linux.ARCH_SET_FS, addr); + const rc = std.os.linux.syscall2(.arch_prctl, std.os.linux.ARCH_SET_FS, addr); assert(rc == 0); }, .aarch64 => { @@ -146,7 +146,7 @@ pub fn setThreadPointer(addr: usize) void { ); }, .arm => { - const rc = std.os.linux.syscall1(std.os.linux.SYS_set_tls, addr); + const rc = std.os.linux.syscall1(.set_tls, addr); assert(rc == 0); }, .riscv64 => { @@ -157,7 +157,7 @@ pub fn setThreadPointer(addr: usize) void { ); }, .mipsel => { - const rc = std.os.linux.syscall1(std.os.linux.SYS_set_thread_area, addr); + const rc = std.os.linux.syscall1(.set_thread_area, addr); assert(rc == 0); }, else => @compileError("Unsupported architecture"), |
