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
signaturebadge-check 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) {...@@ -754,11 +754,14 @@ const page_size_min_default: ?usize = switch (builtin.os.tag) {
754 },754 },
755 .openbsd => switch (builtin.cpu.arch) {755 .openbsd => switch (builtin.cpu.arch) {
756 // OpenBSD/sys/arch/*756 // OpenBSD/sys/arch/*
757 .alpha => 8 << 10,
758 .hppa => 4 << 10,
757 .x86, .x86_64 => 4 << 10,759 .x86, .x86_64 => 4 << 10,
758 .thumb, .thumbeb, .arm, .armeb, .aarch64, .aarch64_be => 4 << 10,760 .thumb, .thumbeb, .arm, .armeb, .aarch64, .aarch64_be => 4 << 10,
759 .mips64, .mips64el => 4 << 10,761 .mips64, .mips64el => 4 << 10,
760 .powerpc, .powerpc64, .powerpc64le, .powerpcle => 4 << 10,762 .powerpc, .powerpc64, .powerpc64le, .powerpcle => 4 << 10,
761 .riscv64 => 4 << 10,763 .riscv64 => 4 << 10,
764 .sh, .sheb => 4 << 10,
762 .sparc64 => 8 << 10,765 .sparc64 => 8 << 10,
763 else => null,766 else => null,
764 },767 },
...@@ -906,11 +909,14 @@ const page_size_max_default: ?usize = switch (builtin.os.tag) {...@@ -906,11 +909,14 @@ const page_size_max_default: ?usize = switch (builtin.os.tag) {
906 },909 },
907 .openbsd => switch (builtin.cpu.arch) {910 .openbsd => switch (builtin.cpu.arch) {
908 // OpenBSD/sys/arch/*911 // OpenBSD/sys/arch/*
912 .alpha => 8 << 10,
913 .hppa => 4 << 10,
909 .x86, .x86_64 => 4 << 10,914 .x86, .x86_64 => 4 << 10,
910 .thumb, .thumbeb, .arm, .armeb, .aarch64, .aarch64_be => 4 << 10,915 .thumb, .thumbeb, .arm, .armeb, .aarch64, .aarch64_be => 4 << 10,
911 .mips64, .mips64el => 16 << 10,916 .mips64, .mips64el => 16 << 10,
912 .powerpc, .powerpc64, .powerpc64le, .powerpcle => 4 << 10,917 .powerpc, .powerpc64, .powerpc64le, .powerpcle => 4 << 10,
913 .riscv64 => 4 << 10,918 .riscv64 => 4 << 10,
919 .sh, .sheb => 4 << 10,
914 .sparc64 => 8 << 10,920 .sparc64 => 8 << 10,
915 else => null,921 else => null,
916 },922 },