]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: make sure windows/amd64 stack is 16-byte aligned on syscall entry (fixes...
authorAlex Brainman <alex.brainman@gmail.com>
Tue, 29 Nov 2011 01:57:20 +0000 (12:57 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 29 Nov 2011 01:57:20 +0000 (12:57 +1100)
R=golang-dev, vcc.163
CC=golang-dev
https://golang.org/cl/5445051

src/pkg/runtime/windows/amd64/sys.s

index 04e36855466120fb46d2933683e1268377e4f103..a1e36fe1328058047f236dd0610ae368f53bd147 100644 (file)
@@ -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