mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 14:41:42 +00:00
- crash solved
This commit is contained in:
parent
cc8b03c655
commit
590988222f
1 changed files with 2 additions and 0 deletions
|
@ -554,6 +554,7 @@ void VM_Compile( vm_t *vm, vmHeader_t *header ) {
|
||||||
emit("push %%r8");
|
emit("push %%r8");
|
||||||
emit("push %%r9");
|
emit("push %%r9");
|
||||||
emit("push %%r10");
|
emit("push %%r10");
|
||||||
|
emit("push %%r10"); // align!
|
||||||
emit("negl %%eax"); // convert to actual number
|
emit("negl %%eax"); // convert to actual number
|
||||||
emit("decl %%eax");
|
emit("decl %%eax");
|
||||||
// first argument already in rdi
|
// first argument already in rdi
|
||||||
|
@ -561,6 +562,7 @@ void VM_Compile( vm_t *vm, vmHeader_t *header ) {
|
||||||
emit("movq $%lu, %%rax", (unsigned long)callAsmCall);
|
emit("movq $%lu, %%rax", (unsigned long)callAsmCall);
|
||||||
emit("callq *%%rax");
|
emit("callq *%%rax");
|
||||||
emit("pop %%r10");
|
emit("pop %%r10");
|
||||||
|
emit("pop %%r10");
|
||||||
emit("pop %%r9");
|
emit("pop %%r9");
|
||||||
emit("pop %%r8");
|
emit("pop %%r8");
|
||||||
emit("pop %%rdi");
|
emit("pop %%rdi");
|
||||||
|
|
Loading…
Reference in a new issue