zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 6c760d76b93680dc6eb4e2afc22b7d6bc286e3ed (tree)
parent c8efebcf53b2b5a93020686940fa2051feb59830
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Thu,  9 Oct 2025 07:47:19 +0200

std.os.linux: define PROT.SEM for xtensa

Diffstat:
Mlib/std/os/linux.zig | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig @@ -3614,8 +3614,7 @@ pub const PROT = struct { pub const EXEC = 0x4; /// page may be used for atomic ops pub const SEM = switch (native_arch) { - // TODO: also xtensa - .mips, .mipsel, .mips64, .mips64el => 0x10, + .mips, .mipsel, .mips64, .mips64el, .xtensa => 0x10, else => 0x8, }; /// mprotect flag: extend change to start of growsdown vma