diff --git a/opal/include/opal/sys/cma.h b/opal/include/opal/sys/cma.h index cbbcbe0147..c421c89132 100644 --- a/opal/include/opal/sys/cma.h +++ b/opal/include/opal/sys/cma.h @@ -1,5 +1,7 @@ /* * Copyright (c) 2011-2012 IBM Corporation. All rights reserved. + * Copyright (c) 2016 Los Alamos National Security, LLC. All rights + * reserved. * */ @@ -45,6 +47,34 @@ #elif OPAL_ASSEMBLY_ARCH == OPAL_POWERPC64 #define __NR_process_vm_readv 351 #define __NR_process_vm_writev 352 +#elif OPAL_ASSEMBLY_ARCH == OPAL_ARM + +#define __NR_process_vm_readv 376 +#define __NR_process_vm_writev 377 + +#elif OPAL_ASSEMBLY_ARCH == OPAL_MIPS + +#if _MIPS_SIM == _MIPS_SIM_ABI32 + +#define __NR_process_vm_readv 4345 +#define __NR_process_vm_writev 4346 + +#elif _MIPS_SIM == _MIPS_SIM_ABI64 + +#define __NR_process_vm_readv 5304 +#define __NR_process_vm_writev 5305 + +#elif _MIPS_SIM == _MIPS_SIM_NABI32 + +#define __NR_process_vm_readv 6309 +#define __NR_process_vm_writev 6310 + +#else + +#error "Unsupported MIPS architecture for process_vm_readv and process_vm_writev syscalls" + +#endif + #else #error "Unsupported architecture for process_vm_readv and process_vm_writev syscalls" #endif