mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.heap: define page size for alpha, hppa, microblaze, sh on Linux
This commit is contained in:
parent
3c5502ed8d
commit
7eda0b5724
1 changed files with 8 additions and 0 deletions
|
|
@ -824,18 +824,22 @@ const page_size_min_default: ?usize = switch (builtin.os.tag) {
|
|||
.emscripten => 64 << 10,
|
||||
.linux => switch (builtin.cpu.arch) {
|
||||
// Linux/arch/*/Kconfig
|
||||
.alpha => 8 << 10,
|
||||
.arc, .arceb => 4 << 10,
|
||||
.thumb, .thumbeb, .arm, .armeb => 4 << 10,
|
||||
.aarch64, .aarch64_be => 4 << 10,
|
||||
.csky => 4 << 10,
|
||||
.hexagon => 4 << 10,
|
||||
.hppa => 4 << 10,
|
||||
.loongarch32, .loongarch64 => 4 << 10,
|
||||
.m68k => 4 << 10,
|
||||
.microblaze, .microblazeel => 4 << 10,
|
||||
.mips, .mipsel, .mips64, .mips64el => 4 << 10,
|
||||
.or1k => 8 << 10,
|
||||
.powerpc, .powerpc64, .powerpc64le, .powerpcle => 4 << 10,
|
||||
.riscv32, .riscv64 => 4 << 10,
|
||||
.s390x => 4 << 10,
|
||||
.sh, .sheb => 4 << 10,
|
||||
.sparc => 4 << 10,
|
||||
.sparc64 => 8 << 10,
|
||||
.x86, .x86_64 => 4 << 10,
|
||||
|
|
@ -972,18 +976,22 @@ const page_size_max_default: ?usize = switch (builtin.os.tag) {
|
|||
.emscripten => 64 << 10,
|
||||
.linux => switch (builtin.cpu.arch) {
|
||||
// Linux/arch/*/Kconfig
|
||||
.alpha => 8 << 10,
|
||||
.arc, .arceb => 16 << 10,
|
||||
.thumb, .thumbeb, .arm, .armeb => 4 << 10,
|
||||
.aarch64, .aarch64_be => 64 << 10,
|
||||
.csky => 4 << 10,
|
||||
.hexagon => 256 << 10,
|
||||
.hppa => 64 << 10,
|
||||
.loongarch32, .loongarch64 => 64 << 10,
|
||||
.m68k => 8 << 10,
|
||||
.microblaze, .microblazeel => 4 << 10,
|
||||
.mips, .mipsel, .mips64, .mips64el => 64 << 10,
|
||||
.or1k => 8 << 10,
|
||||
.powerpc, .powerpc64, .powerpc64le, .powerpcle => 256 << 10,
|
||||
.riscv32, .riscv64 => 4 << 10,
|
||||
.s390x => 4 << 10,
|
||||
.sh, .sheb => 64 << 10,
|
||||
.sparc => 4 << 10,
|
||||
.sparc64 => 8 << 10,
|
||||
.x86, .x86_64 => 4 << 10,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue