From 36332a4fdc8b5bfdaa3a2b6b76772312be6f6a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sun, 28 Jul 2024 21:24:31 +0200 Subject: [PATCH] std.os.linux.tls: Add csky support. --- lib/std/os/linux/tls.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/std/os/linux/tls.zig b/lib/std/os/linux/tls.zig index f47ccea35372..251d4084aa08 100644 --- a/lib/std/os/linux/tls.zig +++ b/lib/std/os/linux/tls.zig @@ -68,6 +68,7 @@ const current_variant: Variant = switch (native_arch) { .armeb, .aarch64, .aarch64_be, + .csky, .thumb, .thumbeb, => .I_original, @@ -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); },