From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web12.4835.1652777061061604497 for ; Tue, 17 May 2022 01:44:28 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=XPYbj1Qz; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: chinni.b.duggapu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652777068; x=1684313068; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mSUSBodQ0BRQkC7kmGUJDkCcyzwYjmK6NrCeylNPuZQ=; b=XPYbj1Qz0FENZtXCv/PISGn/1thLytHUPxNtK9Zhy48jb/t+kjfslthI Kk4rCVcj28KgUlXS9OPNTPDoqpTBtvV0f6Jtqqdo7e5LVqSM9vfboMkxq eYH6bmmLf5/9bNIIVMbpefWD5AGpeA2hxcCeNdmIjQg8DOkZ4xYVwcK8P 3CGZWDiuz/nzX2aEqwbbtlY3Bz07vEH39db3N7el2tQJk3urYQVQXlcmw QQVqhhLL80thu0ut4q8lBs8h6ktdJCBGLGZ1piz+qKy2pYqhrs+GJ3gz5 OtU4+HJoBm2FSYWrESWStb4/vXxhZr/YgBqUaHywlEKJnmE9OqDq+jtVS g==; X-IronPort-AV: E=McAfee;i="6400,9594,10349"; a="268695160" X-IronPort-AV: E=Sophos;i="5.91,232,1647327600"; d="scan'208";a="268695160" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2022 01:44:28 -0700 X-IronPort-AV: E=Sophos;i="5.91,232,1647327600"; d="scan'208";a="544805226" Received: from cbduggap-mobl1.gar.corp.intel.com ([10.215.201.76]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2022 01:44:26 -0700 From: "cbduggap" To: devel@edk2.groups.io Cc: Chasel Chiu , Nate DeSimone , Star Zeng , Ashraf Ali S Subject: [PATCH v5 2/2] IntelFsp2WrapperPkg: FSP_TEMP_RAM_INIT call must follow X64 Calling Convention Date: Tue, 17 May 2022 14:14:01 +0530 Message-Id: <20220517084401.1805-3-chinni.b.duggapu@intel.com> X-Mailer: git-send-email 2.36.0.windows.1 In-Reply-To: <20220517084401.1805-1-chinni.b.duggapu@intel.com> References: <20220517084401.1805-1-chinni.b.duggapu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3926 Pass Input parameters using RCX. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Cc: Ashraf Ali S Signed-off-by: cbduggap --- .../SecFspWrapperPlatformSecLibSample/X64/SecEntry.nasm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/= X64/SecEntry.nasm b/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLib= Sample/X64/SecEntry.nasm index dbbf63336e..065d80d0e2 100644 --- a/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/X64/Sec= Entry.nasm +++ b/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/X64/Sec= Entry.nasm @@ -130,6 +130,9 @@ FspHeaderFound: mov eax, dword [edi + FSP_HEADER_IMAGEBASE_OFFSET]=0D add eax, dword [edi + FSP_HEADER_TEMPRAMINIT_OFFSET]=0D =0D + ; Pass Fsp T Udp pointer as Input parameter=0D + mov rcx, ASM_PFX(FsptUpdDataPtr)=0D +=0D ; Setup the hardcode stack=0D mov rsp, TempRamInitStack=0D =0D @@ -167,5 +170,4 @@ FspApiFailed: align 10h=0D TempRamInitStack:=0D DQ TempRamInitDone=0D - DQ ASM_PFX(FsptUpdDataPtr) ; TempRamInitParams=0D =0D --=20 2.36.0.windows.1