Skip to content

Commit

Permalink
- crash solved
Browse files Browse the repository at this point in the history
  • Loading branch information
lnussel committed Nov 6, 2005
1 parent cc8b03c commit 5909882
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/qcommon/vm_x86_64.c
Expand Up @@ -554,13 +554,15 @@ void VM_Compile( vm_t *vm, vmHeader_t *header ) {
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
emit("movq %%rax, %%rsi"); // second argument in rsi
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");
Expand Down

0 comments on commit 5909882

Please sign in to comment.