authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-23 19:32:02+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-23 19:34:02+02:00
loga03b924e742f61be53731a09ec01db2ca0f8cd78
tree9e34077935ee5c27ddf76e919875b49cbe8ba244
parent7eda0b572489ccd3867d0d98bf85ffa7b9d4f882
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.heap: define page size for alpha, hppa, sh on OpenBSD


1 files changed, 6 insertions(+), 0 deletions(-)

lib/std/heap.zig+6
......@@ -754,11 +754,14 @@ const page_size_min_default: ?usize = switch (builtin.os.tag) {
754754 },
755755 .openbsd => switch (builtin.cpu.arch) {
756756 // OpenBSD/sys/arch/*
757 .alpha => 8 << 10,
758 .hppa => 4 << 10,
757759 .x86, .x86_64 => 4 << 10,
758760 .thumb, .thumbeb, .arm, .armeb, .aarch64, .aarch64_be => 4 << 10,
759761 .mips64, .mips64el => 4 << 10,
760762 .powerpc, .powerpc64, .powerpc64le, .powerpcle => 4 << 10,
761763 .riscv64 => 4 << 10,
764 .sh, .sheb => 4 << 10,
762765 .sparc64 => 8 << 10,
763766 else => null,
764767 },
......@@ -906,11 +909,14 @@ const page_size_max_default: ?usize = switch (builtin.os.tag) {
906909 },
907910 .openbsd => switch (builtin.cpu.arch) {
908911 // OpenBSD/sys/arch/*
912 .alpha => 8 << 10,
913 .hppa => 4 << 10,
909914 .x86, .x86_64 => 4 << 10,
910915 .thumb, .thumbeb, .arm, .armeb, .aarch64, .aarch64_be => 4 << 10,
911916 .mips64, .mips64el => 16 << 10,
912917 .powerpc, .powerpc64, .powerpc64le, .powerpcle => 4 << 10,
913918 .riscv64 => 4 << 10,
919 .sh, .sheb => 4 << 10,
914920 .sparc64 => 8 << 10,
915921 else => null,
916922 },