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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed May 18 23:47:35 EDT 2011


Author: thilo
Date: 2011-05-18 23:47:35 -0400 (Wed, 18 May 2011)
New Revision: 1997

Modified:
   trunk/code/qcommon/vm_x86.c
Log:
I don't seem to get these constraints right. This should fix it


Modified: trunk/code/qcommon/vm_x86.c
===================================================================
--- trunk/code/qcommon/vm_x86.c	2011-05-18 16:06:08 UTC (rev 1996)
+++ trunk/code/qcommon/vm_x86.c	2011-05-19 03:47:35 UTC (rev 1997)
@@ -1544,10 +1544,12 @@
 	}
 #else
 	__asm__ volatile(
+		"push %%eax\r\n"
 		"call *%2\r\n"
+		"pop %%eax\r\n"
 		: "+S" (programStack), "+D" (opStack)
-		: "r" (vm->codeBase + vm->entryOfs)
-		: "cc", "memory", "%eax", "%ebx", "%ecx", "%edx"
+		: "a" (vm->codeBase + vm->entryOfs)
+		: "cc", "memory", "%ebx", "%ecx", "%edx"
 	);
 #endif
 



More information about the quake3-commits mailing list