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) {...@@ -824,18 +824,22 @@ const page_size_min_default: ?usize = switch (builtin.os.tag) {
824 .emscripten => 64 << 10,824 .emscripten => 64 << 10,
825 .linux => switch (builtin.cpu.arch) {825 .linux => switch (builtin.cpu.arch) {
826 // Linux/arch/*/Kconfig826 // Linux/arch/*/Kconfig
827 .alpha => 8 << 10,
827 .arc, .arceb => 4 << 10,828 .arc, .arceb => 4 << 10,
828 .thumb, .thumbeb, .arm, .armeb => 4 << 10,829 .thumb, .thumbeb, .arm, .armeb => 4 << 10,
829 .aarch64, .aarch64_be => 4 << 10,830 .aarch64, .aarch64_be => 4 << 10,
830 .csky => 4 << 10,831 .csky => 4 << 10,
831 .hexagon => 4 << 10,832 .hexagon => 4 << 10,
833 .hppa => 4 << 10,
832 .loongarch32, .loongarch64 => 4 << 10,834 .loongarch32, .loongarch64 => 4 << 10,
833 .m68k => 4 << 10,835 .m68k => 4 << 10,
836 .microblaze, .microblazeel => 4 << 10,
834 .mips, .mipsel, .mips64, .mips64el => 4 << 10,837 .mips, .mipsel, .mips64, .mips64el => 4 << 10,
835 .or1k => 8 << 10,838 .or1k => 8 << 10,
836 .powerpc, .powerpc64, .powerpc64le, .powerpcle => 4 << 10,839 .powerpc, .powerpc64, .powerpc64le, .powerpcle => 4 << 10,
837 .riscv32, .riscv64 => 4 << 10,840 .riscv32, .riscv64 => 4 << 10,
838 .s390x => 4 << 10,841 .s390x => 4 << 10,
842 .sh, .sheb => 4 << 10,
839 .sparc => 4 << 10,843 .sparc => 4 << 10,
840 .sparc64 => 8 << 10,844 .sparc64 => 8 << 10,
841 .x86, .x86_64 => 4 << 10,845 .x86, .x86_64 => 4 << 10,
...@@ -972,18 +976,22 @@ const page_size_max_default: ?usize = switch (builtin.os.tag) {...@@ -972,18 +976,22 @@ const page_size_max_default: ?usize = switch (builtin.os.tag) {
972 .emscripten => 64 << 10,976 .emscripten => 64 << 10,
973 .linux => switch (builtin.cpu.arch) {977 .linux => switch (builtin.cpu.arch) {
974 // Linux/arch/*/Kconfig978 // Linux/arch/*/Kconfig
979 .alpha => 8 << 10,
975 .arc, .arceb => 16 << 10,980 .arc, .arceb => 16 << 10,
976 .thumb, .thumbeb, .arm, .armeb => 4 << 10,981 .thumb, .thumbeb, .arm, .armeb => 4 << 10,
977 .aarch64, .aarch64_be => 64 << 10,982 .aarch64, .aarch64_be => 64 << 10,
978 .csky => 4 << 10,983 .csky => 4 << 10,
979 .hexagon => 256 << 10,984 .hexagon => 256 << 10,
985 .hppa => 64 << 10,
980 .loongarch32, .loongarch64 => 64 << 10,986 .loongarch32, .loongarch64 => 64 << 10,
981 .m68k => 8 << 10,987 .m68k => 8 << 10,
988 .microblaze, .microblazeel => 4 << 10,
982 .mips, .mipsel, .mips64, .mips64el => 64 << 10,989 .mips, .mipsel, .mips64, .mips64el => 64 << 10,
983 .or1k => 8 << 10,990 .or1k => 8 << 10,
984 .powerpc, .powerpc64, .powerpc64le, .powerpcle => 256 << 10,991 .powerpc, .powerpc64, .powerpc64le, .powerpcle => 256 << 10,
985 .riscv32, .riscv64 => 4 << 10,992 .riscv32, .riscv64 => 4 << 10,
986 .s390x => 4 << 10,993 .s390x => 4 << 10,
994 .sh, .sheb => 64 << 10,
987 .sparc => 4 << 10,995 .sparc => 4 << 10,
988 .sparc64 => 8 << 10,996 .sparc64 => 8 << 10,
989 .x86, .x86_64 => 4 << 10,997 .x86, .x86_64 => 4 << 10,