summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2019-07-28 18:15:26 -0700
committerGitHub <[email protected]>2019-07-28 18:15:26 -0700
commitadf495e23982f2f94b468806fa059358fcab0c88 (patch)
treeef57c17013c36d1ce2bbc6ce776a2f4be4da57ae
parent453bb4791e7d0479643ce340818106ab878b562b (diff)
Fix channel programs on s390x
When adapting the original sources for s390x the JMP_BUF_CNT was mistakenly halved due to an incorrect assumption of the size of a unsigned long. They are 8 bytes for the s390x architecture. Increase JMP_BUF_CNT accordingly. Authored-by: Don Brady <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reported-by: Colin Ian King <canonical.com> Tested-by: Colin Ian King <canonical.com> Signed-off-by: Brian Behlendorf <[email protected]> Closes #8992 Closes #9080
-rw-r--r--module/lua/ldo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/lua/ldo.c b/module/lua/ldo.c
index aca02b234..59d0b6a2c 100644
--- a/module/lua/ldo.c
+++ b/module/lua/ldo.c
@@ -61,7 +61,7 @@
#elif defined(__mips__)
#define JMP_BUF_CNT 12
#elif defined(__s390x__)
-#define JMP_BUF_CNT 9
+#define JMP_BUF_CNT 18
#else
#define JMP_BUF_CNT 1
#endif