std.c.openbsd: define MAX_PAGE_SHIFT for all relevant architectures
1 files changed, 17 insertions(+), 3 deletions(-)
lib/std/c/openbsd.zig+17-3
| ... | ... | @@ -285,9 +285,23 @@ pub const E = enum(u16) { |
| 285 | 285 | _, |
| 286 | 286 | }; |
| 287 | 287 | |
| 288 | | pub const MAX_PAGE_SHIFT = switch (builtin.cpu.arch) { |
| 289 | | .x86 => 12, |
| 290 | | .sparc64 => 13, |
| 288 | pub const MAX_PAGE_SHIFT = switch (builtin.target.cpu.arch) { |
| 289 | .alpha, |
| 290 | .sparc64, |
| 291 | => 13, |
| 292 | .arm, |
| 293 | .aarch64, |
| 294 | .hppa, |
| 295 | .m88k, |
| 296 | .powerpc, |
| 297 | .powerpc64, |
| 298 | .riscv64, |
| 299 | .sh, |
| 300 | .x86, |
| 301 | .x86_64, |
| 302 | => 12, |
| 303 | .mips64, |
| 304 | => 14, |
| 291 | 305 | }; |
| 292 | 306 | |
| 293 | 307 | pub const PTHREAD_STACK_MIN = 1 << MAX_PAGE_SHIFT; |