authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-20 03:45:38+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-23 09:27:17+02:00
log7eda0b572489ccd3867d0d98bf85ffa7b9d4f882
tree275d23cc53cb15da92252d099daf199e534532b1
parent3c5502ed8def9f604bd4338c6276c1f858daecfe
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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


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

lib/std/heap.zig+8
......@@ -824,18 +824,22 @@ const page_size_min_default: ?usize = switch (builtin.os.tag) {
824824 .emscripten => 64 << 10,
825825 .linux => switch (builtin.cpu.arch) {
826826 // Linux/arch/*/Kconfig
827 .alpha => 8 << 10,
827828 .arc, .arceb => 4 << 10,
828829 .thumb, .thumbeb, .arm, .armeb => 4 << 10,
829830 .aarch64, .aarch64_be => 4 << 10,
830831 .csky => 4 << 10,
831832 .hexagon => 4 << 10,
833 .hppa => 4 << 10,
832834 .loongarch32, .loongarch64 => 4 << 10,
833835 .m68k => 4 << 10,
836 .microblaze, .microblazeel => 4 << 10,
834837 .mips, .mipsel, .mips64, .mips64el => 4 << 10,
835838 .or1k => 8 << 10,
836839 .powerpc, .powerpc64, .powerpc64le, .powerpcle => 4 << 10,
837840 .riscv32, .riscv64 => 4 << 10,
838841 .s390x => 4 << 10,
842 .sh, .sheb => 4 << 10,
839843 .sparc => 4 << 10,
840844 .sparc64 => 8 << 10,
841845 .x86, .x86_64 => 4 << 10,
......@@ -972,18 +976,22 @@ const page_size_max_default: ?usize = switch (builtin.os.tag) {
972976 .emscripten => 64 << 10,
973977 .linux => switch (builtin.cpu.arch) {
974978 // Linux/arch/*/Kconfig
979 .alpha => 8 << 10,
975980 .arc, .arceb => 16 << 10,
976981 .thumb, .thumbeb, .arm, .armeb => 4 << 10,
977982 .aarch64, .aarch64_be => 64 << 10,
978983 .csky => 4 << 10,
979984 .hexagon => 256 << 10,
985 .hppa => 64 << 10,
980986 .loongarch32, .loongarch64 => 64 << 10,
981987 .m68k => 8 << 10,
988 .microblaze, .microblazeel => 4 << 10,
982989 .mips, .mipsel, .mips64, .mips64el => 64 << 10,
983990 .or1k => 8 << 10,
984991 .powerpc, .powerpc64, .powerpc64le, .powerpcle => 256 << 10,
985992 .riscv32, .riscv64 => 4 << 10,
986993 .s390x => 4 << 10,
994 .sh, .sheb => 64 << 10,
987995 .sparc => 4 << 10,
988996 .sparc64 => 8 << 10,
989997 .x86, .x86_64 => 4 << 10,