summaryrefslogtreecommitdiff
path: root/src/asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/asm')
-rw-r--r--src/asm/vm_x86_64.asm18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/asm/vm_x86_64.asm b/src/asm/vm_x86_64.asm
index 030b6987..87e04f4d 100644
--- a/src/asm/vm_x86_64.asm
+++ b/src/asm/vm_x86_64.asm
@@ -23,26 +23,8 @@
;
; assumes __fastcall calling convention
-DoSyscall PROTO
-
.code
-; Call to static void DoSyscall(int syscallNum, int programStack, int *opStackBase, uint8_t opStackOfs, intptr_t arg)
-
-qsyscall64 PROC
- sub rsp, 28h ; after this esp will be aligned to 16 byte boundary
- mov qword ptr [rsp + 20h], rcx ; 5th parameter "arg" is passed on stack
- mov r9b, bl ; opStackOfs
- mov r8, rdi ; opStackBase
- mov edx, esi ; programStack
- mov ecx, eax ; syscallNum
- mov rax, DoSyscall ; store call address of DoSyscall in rax
- call rax
- add rsp, 28h
- ret
-qsyscall64 ENDP
-
-
; Call to compiled code after setting up the register environment for the VM
; prototype:
; uint8_t qvmcall64(int *programStack, int *opStack, intptr_t *instructionPointers, byte *dataBase);