std.os.linux.tls: Fix setThreadPointer() for armeb and thumbeb.

This commit is contained in:
Alex Rønne Petersen 2024-07-21 23:39:36 +02:00
parent 0473457b68
commit 2d4fc1bb7a
No known key found for this signature in database

View File

@ -166,7 +166,7 @@ pub fn setThreadPointer(addr: usize) void {
: [addr] "r" (addr),
);
},
.arm, .thumb => {
.arm, .armeb, .thumb, .thumbeb => {
const rc = @call(.always_inline, linux.syscall1, .{ .set_tls, addr });
assert(rc == 0);
},