From b8ef880d85b00dc9cf6ec1a4a0711b7b0912a80f Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Thu, 19 May 2011 03:47:35 +0000 Subject: [PATCH] I don't seem to get these constraints right. This should fix it --- code/qcommon/vm_x86.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/qcommon/vm_x86.c b/code/qcommon/vm_x86.c index d2cfb165..56b9a2f9 100644 --- a/code/qcommon/vm_x86.c +++ b/code/qcommon/vm_x86.c @@ -1544,10 +1544,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