From adf495e23982f2f94b468806fa059358fcab0c88 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Sun, 28 Jul 2019 18:15:26 -0700 Subject: [PATCH] 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 Reviewed-by: Brian Behlendorf Reported-by: Colin Ian King Tested-by: Colin Ian King Signed-off-by: Brian Behlendorf Closes #8992 Closes #9080 --- module/lua/ldo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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