1
1

cma: add support for MIPS and ARM

Signed-off-by: Nathan Hjelm <hjelmn@me.com>
Этот коммит содержится в:
Nathan Hjelm 2016-05-04 20:49:26 -06:00
родитель d2abff583e
Коммит 60519c2b4e

@ -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