r297 - trunk/code/qcommon
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Nov 6 11:32:42 EST 2005
Author: ludwig
Date: 2005-11-06 11:32:42 -0500 (Sun, 06 Nov 2005)
New Revision: 297
Modified:
trunk/code/qcommon/vm_x86_64.c
Log:
- crash solved
Modified: trunk/code/qcommon/vm_x86_64.c
===================================================================
--- trunk/code/qcommon/vm_x86_64.c 2005-11-06 16:24:49 UTC (rev 296)
+++ trunk/code/qcommon/vm_x86_64.c 2005-11-06 16:32:42 UTC (rev 297)
@@ -554,6 +554,7 @@
emit("push %%r8");
emit("push %%r9");
emit("push %%r10");
+ emit("push %%r10"); // align!
emit("negl %%eax"); // convert to actual number
emit("decl %%eax");
// first argument already in rdi
@@ -561,6 +562,7 @@
emit("movq $%lu, %%rax", (unsigned long)callAsmCall);
emit("callq *%%rax");
emit("pop %%r10");
+ emit("pop %%r10");
emit("pop %%r9");
emit("pop %%r8");
emit("pop %%rdi");
More information about the quake3-commits
mailing list