[quake3-commits] r2062 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Jun 27 16:22:32 EDT 2011


Author: thilo
Date: 2011-06-27 16:22:32 -0400 (Mon, 27 Jun 2011)
New Revision: 2062

Modified:
   trunk/code/qcommon/vm_x86.c
   trunk/code/qcommon/vm_x86_64.c
Log:
- Fix opStack size for vm_x86.c
- Change opStack alignment to 16 for vm_x86_64.c


Modified: trunk/code/qcommon/vm_x86.c
===================================================================
--- trunk/code/qcommon/vm_x86.c	2011-06-25 20:36:36 UTC (rev 2061)
+++ trunk/code/qcommon/vm_x86.c	2011-06-27 20:22:32 UTC (rev 2062)
@@ -1714,7 +1714,7 @@
 
 int VM_CallCompiled(vm_t *vm, int *args)
 {
-	byte	stack[OPSTACK_SIZE * 4 + 15];
+	byte	stack[OPSTACK_SIZE + 15];
 	void	*entryPoint;
 	int		programCounter;
 	int		programStack, stackOnEntry;

Modified: trunk/code/qcommon/vm_x86_64.c
===================================================================
--- trunk/code/qcommon/vm_x86_64.c	2011-06-25 20:36:36 UTC (rev 2061)
+++ trunk/code/qcommon/vm_x86_64.c	2011-06-27 20:22:32 UTC (rev 2062)
@@ -1016,7 +1016,7 @@
 
 int VM_CallCompiled(vm_t *vm, int *args)
 {
-	int stack[OPSTACK_SIZE + 3];
+	int stack[OPSTACK_SIZE + 15];
 	int		programCounter;
 	int		programStack;
 	int		stackOnEntry;
@@ -1063,7 +1063,7 @@
 
 	// off we go into generated code...
 	entryPoint = getentrypoint(vm);
-	opStack = PADP(stack, 4);
+	opStack = PADP(stack, 16);
 
 	*opStack = 0xDEADBEEF;
 	opStackRet = 0;



More information about the quake3-commits mailing list