Skip to content

Commit 6c760d7

Browse files
committed
std.os.linux: define PROT.SEM for xtensa
1 parent c8efebc commit 6c760d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/std/os/linux.zig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3614,8 +3614,7 @@ pub const PROT = struct {
36143614
pub const EXEC = 0x4;
36153615
/// page may be used for atomic ops
36163616
pub const SEM = switch (native_arch) {
3617-
// TODO: also xtensa
3618-
.mips, .mipsel, .mips64, .mips64el => 0x10,
3617+
.mips, .mipsel, .mips64, .mips64el, .xtensa => 0x10,
36193618
else => 0x8,
36203619
};
36213620
/// mprotect flag: extend change to start of growsdown vma

0 commit comments

Comments
 (0)