summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Brainman <alex.brainman@gmail.com>2011-11-29 12:57:20 +1100
committerAlex Brainman <alex.brainman@gmail.com>2011-11-29 12:57:20 +1100
commit5aa3f9fda7e8206255b6c22f2c145dd0acf7122e (patch)
treec5f48947c0a2a2395d1e0de98c613cc64251f109
parent9eb9234ff04a760313f1410940cf81aa91cbf056 (diff)
downloadgo-5aa3f9fda7e8206255b6c22f2c145dd0acf7122e.tar.gz
runtime: make sure windows/amd64 stack is 16-byte aligned on syscall entry (fixes build)
R=golang-dev, vcc.163 CC=golang-dev http://codereview.appspot.com/5445051
-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