diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-10-09 07:47:19 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-10-09 20:42:19 +0200 |
| commit | 6c760d76b93680dc6eb4e2afc22b7d6bc286e3ed (patch) | |
| tree | c9fd5430a7ce2e0db580130302c152e8ce21c8ac /lib/std | |
| parent | c8efebcf53b2b5a93020686940fa2051feb59830 (diff) | |
| download | zig-6c760d76b93680dc6eb4e2afc22b7d6bc286e3ed.tar.gz zig-6c760d76b93680dc6eb4e2afc22b7d6bc286e3ed.zip | |
std.os.linux: define PROT.SEM for xtensa
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/os/linux.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig index 45cf597c76..55a8297464 100644 --- 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 |
