diff options
author | Alex Brainman <alex.brainman@gmail.com> | 2011-11-29 12:57:20 +1100 |
---|---|---|
committer | Alex Brainman <alex.brainman@gmail.com> | 2011-11-29 12:57:20 +1100 |
commit | fbdec642a980d73cdd7dbfd18018f18c6d198ffc (patch) | |
tree | 6d4a22284d6341687fde3b31a6fa9a06c6f7ee7b | |
parent | c32b60768785684342ebf6efdf50a7476326f473 (diff) | |
download | go-fbdec642a980d73cdd7dbfd18018f18c6d198ffc.tar.gz go-fbdec642a980d73cdd7dbfd18018f18c6d198ffc.zip |
runtime: make sure windows/amd64 stack is 16-byte aligned on syscall entry (fixes build)
R=golang-dev, vcc.163
CC=golang-dev
https://golang.org/cl/5445051
-rw-r--r-- | src/pkg/runtime/windows/amd64/sys.s | 4 |
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 04e3685546..a1e36fe132 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 |