Skip to content

Commit

Permalink
fix OP_BLOCK_COPY alignment for win64 (patch by Marcus Meissner)
Browse files Browse the repository at this point in the history
  • Loading branch information
lnussel committed May 17, 2010
1 parent 368a3be commit 2950bb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/qcommon/vm_x86_64.c
Expand Up @@ -757,12 +757,14 @@ void VM_Compile( vm_t *vm, vmHeader_t *header ) {
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");
Expand Down

0 comments on commit 2950bb9

Please sign in to comment.