From: Alex Brainman Date: Tue, 29 Nov 2011 01:57:20 +0000 (+1100) Subject: runtime: make sure windows/amd64 stack is 16-byte aligned on syscall entry (fixes... X-Git-Tag: weekly.2011-12-01~27 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fbdec642a980d73cdd7dbfd18018f18c6d198ffc;p=gostls13.git 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 --- 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