* asm_calljavafunction2: keep stack 16-byte aligned
authortwisti <none@none>
Fri, 17 Jun 2005 12:18:29 +0000 (12:18 +0000)
committertwisti <none@none>
Fri, 17 Jun 2005 12:18:29 +0000 (12:18 +0000)
src/vm/jit/x86_64/asmpart.S

index b76758c1c03e3abc2148bac8a2cf6fbd5134fbf1..c994782258013a447ab0fe8cd98a3da9af07d7f0 100644 (file)
@@ -28,7 +28,7 @@
             Reinhard Grafl
             Christian Thalinger
 
-   $Id: asmpart.S 2586 2005-06-08 10:56:49Z twisti $
+   $Id: asmpart.S 2733 2005-06-17 12:18:29Z twisti $
 
 */
 
@@ -240,6 +240,7 @@ L_register_copy_done:
        sub     %r13,%rbp                 /* - float arguments in registers       */
        jle     L_copy_done               /* are all assigned to registers?       */
 
+       and     $0xfffffffffffffffe,%rbp  /* keep stack 16-byte aligned           */
        shl     $3,%rbp                   /* calculate stack size                 */
        sub     %rbp,%rsp                 /* stack frame for arguments            */
        mov     %rsp,%rbx                 /* use %rbx as temp sp                  */