Skip to content

Commit

Permalink
std.os.linux.tls: Add csky support.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Jul 30, 2024
1 parent 9abe3ae commit 36332a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/std/os/linux/tls.zig
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const current_variant: Variant = switch (native_arch) {
.armeb,
.aarch64,
.aarch64_be,
.csky,
.thumb,
.thumbeb,
=> .I_original,
Expand Down Expand Up @@ -279,7 +280,7 @@ pub fn setThreadPointer(addr: usize) void {
: [addr] "r" (addr),
);
},
.mips, .mipsel, .mips64, .mips64el => {
.csky, .mips, .mipsel, .mips64, .mips64el => {
const rc = @call(.always_inline, linux.syscall1, .{ .set_thread_area, addr });
assert(rc == 0);
},
Expand Down

0 comments on commit 36332a4

Please sign in to comment.