summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libguile/lightening/lightening/x86.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libguile/lightening/lightening/x86.c b/libguile/lightening/lightening/x86.c
index 965191a4c..bdd26e14f 100644
--- a/libguile/lightening/lightening/x86.c
+++ b/libguile/lightening/lightening/x86.c
@@ -328,6 +328,10 @@ reset_abi_arg_iterator(struct abi_arg_iterator *iter, size_t argc,
memset(iter, 0, sizeof *iter);
iter->argc = argc;
iter->args = args;
+#if __CYGWIN__ && __X64
+ // Reserve slots on the stack for 4 register parameters (8 bytes each).
+ iter->stack_size = 32;
+#endif
}
static void