diff options
| author | LemonBoy <thatlemon@gmail.com> | 2020-10-19 11:40:46 +0200 |
|---|---|---|
| committer | LemonBoy <thatlemon@gmail.com> | 2020-10-19 15:15:43 +0200 |
| commit | 96fe97105108da6cdd631c69856cdb6a8a11cffd (patch) | |
| tree | 85ff66adfc0f47b596d3c1773c8a7fac86083383 /lib/std/os/bits/linux.zig | |
| parent | 3ab4d112e001398e6ba60a0497ecf9265d49f157 (diff) | |
| download | zig-96fe97105108da6cdd631c69856cdb6a8a11cffd.tar.gz zig-96fe97105108da6cdd631c69856cdb6a8a11cffd.zip | |
std: Minor changes to startup code
* Smaller startup sequence for ppc64
* Terminate the frame-pointer chain when executing _start
* Make the stack traces work on ppc64
* Make the stack traces coloured on ppc64, some ioctls numbers are
different and the whole set of constants should be audited.
Diffstat (limited to 'lib/std/os/bits/linux.zig')
| -rw-r--r-- | lib/std/os/bits/linux.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/std/os/bits/linux.zig b/lib/std/os/bits/linux.zig index 6f2c68b63b..19cc3be775 100644 --- a/lib/std/os/bits/linux.zig +++ b/lib/std/os/bits/linux.zig @@ -29,6 +29,7 @@ pub usingnamespace @import("linux/prctl.zig"); pub usingnamespace @import("linux/securebits.zig"); const is_mips = builtin.arch.isMIPS(); +const is_ppc64 = builtin.arch.isPPC64(); pub const pid_t = i32; pub const fd_t = i32; @@ -540,8 +541,8 @@ pub const TIOCGPGRP = 0x540F; pub const TIOCSPGRP = 0x5410; pub const TIOCOUTQ = if (is_mips) 0x7472 else 0x5411; pub const TIOCSTI = 0x5412; -pub const TIOCGWINSZ = if (is_mips) 0x40087468 else 0x5413; -pub const TIOCSWINSZ = if (is_mips) 0x80087467 else 0x5414; +pub const TIOCGWINSZ = if (is_mips or is_ppc64) 0x40087468 else 0x5413; +pub const TIOCSWINSZ = if (is_mips or is_ppc64) 0x80087467 else 0x5414; pub const TIOCMGET = 0x5415; pub const TIOCMBIS = 0x5416; pub const TIOCMBIC = 0x5417; |
