From 5947ea492dd6df21d1e540bac28f1384fa43d625 Mon Sep 17 00:00:00 2001 From: Xu Jun <693788454@qq.com> Date: Thu, 4 Feb 2021 08:50:15 +0800 Subject: [PATCH] Update invokeNative_em64.asm (#511) Fix the issue of WIN64 parameter passing --- core/iwasm/common/arch/invokeNative_em64.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/iwasm/common/arch/invokeNative_em64.asm b/core/iwasm/common/arch/invokeNative_em64.asm index 8ce4fc0b..df811539 100644 --- a/core/iwasm/common/arch/invokeNative_em64.asm +++ b/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 \ No newline at end of file +END