mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
std.heap: define page size for alpha, hppa, sh on OpenBSD
This commit is contained in:
parent
7eda0b5724
commit
a03b924e74
1 changed files with 6 additions and 0 deletions
|
|
@ -754,11 +754,14 @@ const page_size_min_default: ?usize = switch (builtin.os.tag) {
|
|||
},
|
||||
.openbsd => switch (builtin.cpu.arch) {
|
||||
// OpenBSD/sys/arch/*
|
||||
.alpha => 8 << 10,
|
||||
.hppa => 4 << 10,
|
||||
.x86, .x86_64 => 4 << 10,
|
||||
.thumb, .thumbeb, .arm, .armeb, .aarch64, .aarch64_be => 4 << 10,
|
||||
.mips64, .mips64el => 4 << 10,
|
||||
.powerpc, .powerpc64, .powerpc64le, .powerpcle => 4 << 10,
|
||||
.riscv64 => 4 << 10,
|
||||
.sh, .sheb => 4 << 10,
|
||||
.sparc64 => 8 << 10,
|
||||
else => null,
|
||||
},
|
||||
|
|
@ -906,11 +909,14 @@ const page_size_max_default: ?usize = switch (builtin.os.tag) {
|
|||
},
|
||||
.openbsd => switch (builtin.cpu.arch) {
|
||||
// OpenBSD/sys/arch/*
|
||||
.alpha => 8 << 10,
|
||||
.hppa => 4 << 10,
|
||||
.x86, .x86_64 => 4 << 10,
|
||||
.thumb, .thumbeb, .arm, .armeb, .aarch64, .aarch64_be => 4 << 10,
|
||||
.mips64, .mips64el => 16 << 10,
|
||||
.powerpc, .powerpc64, .powerpc64le, .powerpcle => 4 << 10,
|
||||
.riscv64 => 4 << 10,
|
||||
.sh, .sheb => 4 << 10,
|
||||
.sparc64 => 8 << 10,
|
||||
else => null,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue