mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.os.linux: Define (MIN)SIGSTKSZ for all supported Linux architectures.
This commit is contained in:
parent
b21de4de5e
commit
fcbb192b49
1 changed files with 63 additions and 4 deletions
|
|
@ -4787,13 +4787,72 @@ pub fn CPU_COUNT(set: cpu_set_t) cpu_count_t {
|
|||
}
|
||||
|
||||
pub const MINSIGSTKSZ = switch (native_arch) {
|
||||
.x86, .x86_64, .arm, .mipsel => 2048,
|
||||
.aarch64 => 5120,
|
||||
.arc,
|
||||
.arm,
|
||||
.armeb,
|
||||
.csky,
|
||||
.hexagon,
|
||||
.m68k,
|
||||
.mips,
|
||||
.mipsel,
|
||||
.mips64,
|
||||
.mips64el,
|
||||
.powerpc,
|
||||
.powerpcle,
|
||||
.riscv32,
|
||||
.riscv64,
|
||||
.s390x,
|
||||
.thumb,
|
||||
.thumbeb,
|
||||
.x86,
|
||||
.x86_64,
|
||||
.xtensa,
|
||||
=> 2048,
|
||||
.loongarch64,
|
||||
.sparc,
|
||||
.sparcel,
|
||||
.sparc64,
|
||||
=> 4096,
|
||||
.aarch64,
|
||||
.aarch64_be,
|
||||
=> 5120,
|
||||
.powerpc64,
|
||||
.powerpc64le,
|
||||
=> 8192,
|
||||
else => @compileError("MINSIGSTKSZ not defined for this architecture"),
|
||||
};
|
||||
pub const SIGSTKSZ = switch (native_arch) {
|
||||
.x86, .x86_64, .arm, .mipsel => 8192,
|
||||
.aarch64 => 16384,
|
||||
.arc,
|
||||
.arm,
|
||||
.armeb,
|
||||
.csky,
|
||||
.hexagon,
|
||||
.m68k,
|
||||
.mips,
|
||||
.mipsel,
|
||||
.mips64,
|
||||
.mips64el,
|
||||
.powerpc,
|
||||
.powerpcle,
|
||||
.riscv32,
|
||||
.riscv64,
|
||||
.s390x,
|
||||
.thumb,
|
||||
.thumbeb,
|
||||
.x86,
|
||||
.x86_64,
|
||||
.xtensa,
|
||||
=> 8192,
|
||||
.aarch64,
|
||||
.aarch64_be,
|
||||
.loongarch64,
|
||||
.sparc,
|
||||
.sparcel,
|
||||
.sparc64,
|
||||
=> 16384,
|
||||
.powerpc64,
|
||||
.powerpc64le,
|
||||
=> 32768,
|
||||
else => @compileError("SIGSTKSZ not defined for this architecture"),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue