소스 검색

Update invokeNative_em64.asm (#511)

Fix the issue of WIN64 parameter passing
Xu Jun 5 년 전
부모
커밋
5947ea492d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      core/iwasm/common/arch/invokeNative_em64.asm

+ 2 - 2
core/iwasm/common/arch/invokeNative_em64.asm

@@ -37,7 +37,7 @@ no_abort:
     sub rsp, rdx
 
 ; store stack args
-    lea r9, qword ptr [rax + rcx * 8 + 64]
+    lea r9, qword ptr [rax + rcx * 8 + 56]
     sub r9, rsp ; offset
 cycle:
     push qword ptr [rsp + r9]
@@ -59,4 +59,4 @@ invokeNative ENDP
 
 _TEXT   ENDS
 
-END
+END