r1104 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Jul 3 04:16:35 EDT 2007


Author: ludwig
Date: 2007-07-03 04:16:21 -0400 (Tue, 03 Jul 2007)
New Revision: 1104

Modified:
   trunk/code/qcommon/vm_x86_64.c
Log:
fix stack alignment


Modified: trunk/code/qcommon/vm_x86_64.c
===================================================================
--- trunk/code/qcommon/vm_x86_64.c	2007-06-27 10:06:15 UTC (rev 1103)
+++ trunk/code/qcommon/vm_x86_64.c	2007-07-03 08:16:21 UTC (rev 1104)
@@ -991,7 +991,9 @@
 		"	movl %4,%%edi		\r\n" \
 		"	movq %2,%%r10		\r\n" \
 		"	movq %3,%%r8		\r\n" \
+		"       subq $8, %%rsp # fix alignment as call pushes one value \r\n" \
 		"	callq *%%r10		\r\n" \
+		"       addq $8, %%rsp          \r\n" \
 		"	movl %%edi, %0		\r\n" \
 		"	movq %%rsi, %1		\r\n" \
 		: "=m" (programStack), "=m" (opStack)




More information about the quake3-commits mailing list