From c83b33a2e527336aaadb90e636369ce2d64da942 Mon Sep 17 00:00:00 2001 From: Bryant Mairs Date: Sat, 8 Jul 2017 21:46:14 -0700 Subject: Support syscalls on mips64 --- src/sys/syscall.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') 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; -- cgit v1.2.3