File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -1083,7 +1083,15 @@ AC_DEFUN([OPAL_CONFIG_ASM],[
1083
1083
fi
1084
1084
OPAL_GCC_INLINE_ASSIGN='"1: li %0,0" : "=&r"(ret)'
1085
1085
;;
1086
-
1086
+ # There is no current difference between s390 and s390x
1087
+ # But use two different defines in case some come later
1088
+ # as s390 is 31bits while s390x is 64bits
1089
+ s390-*)
1090
+ opal_cv_asm_arch="S390"
1091
+ ;;
1092
+ s390x-*)
1093
+ opal_cv_asm_arch="S390X"
1094
+ ;;
1087
1095
sparc*-*)
1088
1096
# SPARC v9 (and above) are the only ones with 64bit support
1089
1097
# if compiling 32 bit, see if we are v9 (aka v8plus) or
Original file line number Diff line number Diff line change 42
42
#define OPAL_MIPS 0070
43
43
#define OPAL_ARM 0100
44
44
#define OPAL_ARM64 0101
45
+ #define OPAL_S390 0110
46
+ #define OPAL_S390X 0111
45
47
#define OPAL_BUILTIN_SYNC 0200
46
48
#define OPAL_BUILTIN_GCC 0202
47
49
#define OPAL_BUILTIN_NO 0203
Original file line number Diff line number Diff line change 82
82
83
83
#endif
84
84
85
+ #elif OPAL_ASSEMBLY_ARCH == OPAL_S390
86
+
87
+ #define __NR_process_vm_readv 340
88
+ #define __NR_process_vm_writev 341
89
+
90
+ #elif OPAL_ASSEMBLY_ARCH == OPAL_S390X
91
+
92
+ #define __NR_process_vm_readv 340
93
+ #define __NR_process_vm_writev 341
94
+
85
95
#else
86
96
#error "Unsupported architecture for process_vm_readv and process_vm_writev syscalls"
87
97
#endif
You can’t perform that action at this time.
0 commit comments