mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-12-04 01:41:40 +00:00
I don't seem to get these constraints right. This should fix it
This commit is contained in:
parent
a42239e1e5
commit
b8ef880d85
1 changed files with 4 additions and 2 deletions
|
@ -1544,10 +1544,12 @@ int VM_CallCompiled( vm_t *vm, int *args ) {
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
__asm__ volatile(
|
__asm__ volatile(
|
||||||
|
"push %%eax\r\n"
|
||||||
"call *%2\r\n"
|
"call *%2\r\n"
|
||||||
|
"pop %%eax\r\n"
|
||||||
: "+S" (programStack), "+D" (opStack)
|
: "+S" (programStack), "+D" (opStack)
|
||||||
: "r" (vm->codeBase + vm->entryOfs)
|
: "a" (vm->codeBase + vm->entryOfs)
|
||||||
: "cc", "memory", "%eax", "%ebx", "%ecx", "%edx"
|
: "cc", "memory", "%ebx", "%ecx", "%edx"
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue