[quake3-commits] r1784 - trunk/code/qcommon
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon May 17 04:59:53 EDT 2010
Author: ludwig
Date: 2010-05-17 04:59:53 -0400 (Mon, 17 May 2010)
New Revision: 1784
Modified:
trunk/code/qcommon/vm_x86_64.c
Log:
fix OP_BLOCK_COPY alignment for win64 (patch by Marcus Meissner)
Modified: trunk/code/qcommon/vm_x86_64.c
===================================================================
--- trunk/code/qcommon/vm_x86_64.c 2010-04-16 09:29:34 UTC (rev 1783)
+++ trunk/code/qcommon/vm_x86_64.c 2010-05-17 08:59:53 UTC (rev 1784)
@@ -757,12 +757,14 @@
emit("push %%r8");
emit("push %%r9");
emit("push %%r10");
+ emit("push %%r10");
emit("movl 4(%%rsi), %%edi"); // 1st argument dest
emit("movl 8(%%rsi), %%esi"); // 2nd argument src
emit("movl $%d, %%edx", iarg); // 3rd argument count
emit("movq $%"PRIu64", %%rax", (uint64_t)block_copy_vm);
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