authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-23 19:33:34+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-23 19:34:02+02:00
log23b299056dd6d5ed5f8f0dc4306add697e2154c2
treeb92215c6709e9e8bfb089226dca6cac5233e05fa
parenta03b924e742f61be53731a09ec01db2ca0f8cd78
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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


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

lib/std/heap.zig+4
...@@ -739,8 +739,10 @@ const page_size_min_default: ?usize = switch (builtin.os.tag) {...@@ -739,8 +739,10 @@ const page_size_min_default: ?usize = switch (builtin.os.tag) {
739 .x86, .x86_64 => 4 << 10,739 .x86, .x86_64 => 4 << 10,
740 .thumb, .thumbeb, .arm, .armeb => 4 << 10,740 .thumb, .thumbeb, .arm, .armeb => 4 << 10,
741 .aarch64, .aarch64_be => 4 << 10,741 .aarch64, .aarch64_be => 4 << 10,
742 .hppa => 4 << 10,
742 .mips, .mipsel, .mips64, .mips64el => 4 << 10,743 .mips, .mipsel, .mips64, .mips64el => 4 << 10,
743 .powerpc, .powerpc64, .powerpc64le, .powerpcle => 4 << 10,744 .powerpc, .powerpc64, .powerpc64le, .powerpcle => 4 << 10,
745 .sh, .sheb => 4 << 10,
744 .sparc => 4 << 10,746 .sparc => 4 << 10,
745 .sparc64 => 8 << 10,747 .sparc64 => 8 << 10,
746 .riscv32, .riscv64 => 4 << 10,748 .riscv32, .riscv64 => 4 << 10,
...@@ -895,8 +897,10 @@ const page_size_max_default: ?usize = switch (builtin.os.tag) {...@@ -895,8 +897,10 @@ const page_size_max_default: ?usize = switch (builtin.os.tag) {
895 .x86, .x86_64 => 4 << 10,897 .x86, .x86_64 => 4 << 10,
896 .thumb, .thumbeb, .arm, .armeb => 4 << 10,898 .thumb, .thumbeb, .arm, .armeb => 4 << 10,
897 .aarch64, .aarch64_be => 64 << 10,899 .aarch64, .aarch64_be => 64 << 10,
900 .hppa => 4 << 10,
898 .mips, .mipsel, .mips64, .mips64el => 16 << 10,901 .mips, .mipsel, .mips64, .mips64el => 16 << 10,
899 .powerpc, .powerpc64, .powerpc64le, .powerpcle => 16 << 10,902 .powerpc, .powerpc64, .powerpc64le, .powerpcle => 16 << 10,
903 .sh, .sheb => 4 << 10,
900 .sparc => 8 << 10,904 .sparc => 8 << 10,
901 .sparc64 => 8 << 10,905 .sparc64 => 8 << 10,
902 .riscv32, .riscv64 => 4 << 10,906 .riscv32, .riscv64 => 4 << 10,