From a42bcdf589d0fbdd1492c63586de56aa90eed1f9 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Thu, 19 May 2011 03:47:35 +0000 Subject: I don't seem to get these constraints right. This should fix it --- src/qcommon/vm_x86.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/qcommon') diff --git a/src/qcommon/vm_x86.c b/src/qcommon/vm_x86.c index e1ba73a0..5ab69c9a 100644 --- a/src/qcommon/vm_x86.c +++ b/src/qcommon/vm_x86.c @@ -1545,10 +1545,12 @@ int VM_CallCompiled( vm_t *vm, int *args ) { } #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 -- cgit