summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pkg/runtime/windows/amd64/sys.s4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pkg/runtime/windows/amd64/sys.s b/src/pkg/runtime/windows/amd64/sys.s
index 04e368554..a1e36fe13 100644
--- a/src/pkg/runtime/windows/amd64/sys.s
+++ b/src/pkg/runtime/windows/amd64/sys.s
@@ -4,7 +4,9 @@
#include "amd64/asm.h"
-#define maxargs 15
+// maxargs should be divisible by 2, as Windows stack
+// must be kept 16-byte aligned on syscall entry.
+#define maxargs 16
// void runtimeĀ·asmstdcall(void *c);
TEXT runtimeĀ·asmstdcall(SB),7,$0