From 2e33856d6b4f72e8d7349333fde90da010505248 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 17 Dec 2007 19:08:17 -0700 Subject: [PATCH] align stack to 16 byte boundary on amd64 --- src/x86.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/x86.S b/src/x86.S index 625168f125..a1c21ff776 100644 --- a/src/x86.S +++ b/src/x86.S @@ -27,6 +27,9 @@ vmNativeCall: // reserve space for arguments passed via memory subq %rdx,%rsp + + // align to a 16 byte boundary + andq $0xFFFFFFFFFFFFFFF0,%rsp // copy memory arguments into place movq $0,%rcx