Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion config/opal_config_asm.m4
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,12 @@ AC_DEFUN([OPAL_CONFIG_ASM],[
fi
OPAL_GCC_INLINE_ASSIGN='"1: li %0,0" : "=&r"(ret)'
;;

s390-*)
opal_cv_asm_arch="S390"
;;
s390x-*)
opal_cv_asm_arch="S390X"
;;
sparc*-*)
# SPARC v9 (and above) are the only ones with 64bit support
# if compiling 32 bit, see if we are v9 (aka v8plus) or
Expand Down
2 changes: 2 additions & 0 deletions opal/include/opal/sys/architecture.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
#define OPAL_MIPS 0070
#define OPAL_ARM 0100
#define OPAL_ARM64 0101
#define OPAL_S390 0110
#define OPAL_S390X 0111
#define OPAL_BUILTIN_SYNC 0200
#define OPAL_BUILTIN_OSX 0201
#define OPAL_BUILTIN_GCC 0202
Expand Down
10 changes: 10 additions & 0 deletions opal/include/opal/sys/cma.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,16 @@

#endif

#elif OPAL_ASSEMBLY_ARCH == OPAL_S390

#define __NR_process_vm_readv 340
#define __NR_process_vm_writev 341

#elif OPAL_ASSEMBLY_ARCH == OPAL_S390X

#define __NR_process_vm_readv 340
#define __NR_process_vm_writev 341

#else
#error "Unsupported architecture for process_vm_readv and process_vm_writev syscalls"
#endif
Expand Down