authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-09 07:47:19+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-09 20:42:19+02:00
log6c760d76b93680dc6eb4e2afc22b7d6bc286e3ed
treec9fd5430a7ce2e0db580130302c152e8ce21c8ac
parentc8efebcf53b2b5a93020686940fa2051feb59830
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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


1 files changed, 1 insertions(+), 2 deletions(-)

lib/std/os/linux.zig+1-2
......@@ -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