mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
std.os.linux.tls: Add csky support.
This commit is contained in:
parent
9abe3aeeea
commit
36332a4fdc
@ -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);
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user