diff options
author | Bryant Mairs <bryant@mai.rs> | 2017-07-08 21:46:14 -0700 |
---|---|---|
committer | Bryant Mairs <bryant@mai.rs> | 2017-07-08 21:46:14 -0700 |
commit | c83b33a2e527336aaadb90e636369ce2d64da942 (patch) | |
tree | e6d280c2c59032b5751d2dff04e65bf95c213ee2 /src/sys | |
parent | e3594498c2e74482813642e023c1f126f7d74eb9 (diff) | |
download | nix-c83b33a2e527336aaadb90e636369ce2d64da942.zip |
Support syscalls on mips64
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/syscall.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sys/syscall.rs b/src/sys/syscall.rs index f47d5126..50866ca7 100644 --- a/src/sys/syscall.rs +++ b/src/sys/syscall.rs @@ -44,6 +44,7 @@ mod arch { pub static MEMFD_CREATE: Syscall = 385; } +// Rust on mips uses the N32 ABI #[cfg(target_arch = "mips")] mod arch { use libc::c_long; @@ -54,6 +55,17 @@ mod arch { pub static MEMFD_CREATE: Syscall = 354; } +// Rust on mips64 uses the N64 ABI +#[cfg(target_arch = "mips64")] +mod arch { + use libc::c_long; + + pub type Syscall = c_long; + + pub static SYSPIVOTROOT: Syscall = 151; + pub static MEMFD_CREATE: Syscall = 314; +} + #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))] mod arch { use libc::c_long; |