]> git.proxmox.com Git - mirror_edk2.git/commitdiff
IntelFsp2Pkg: Update Function header to support IA32/X64.
authorChasel Chiu <chasel.chiu@intel.com>
Fri, 28 Oct 2022 02:37:27 +0000 (19:37 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 2 Nov 2022 18:33:31 +0000 (18:33 +0000)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4126

Common functions will have either 32bit or 64bit instances which
having different return code size. Function header should support both
scenarios.

Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Signed-off-by: Chasel Chiu <chasel.chiu@intel.com>
Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
IntelFsp2Pkg/FspSecCore/SecFsp.h
IntelFsp2Pkg/Include/Library/FspSecPlatformLib.h

index e84528b3784908120e87991ed40d723fee1c7586..d7a5976c12823577a468639e1c5b56c94e69af3e 100644 (file)
@@ -70,7 +70,7 @@ FspDataPointerFixUp (
   @return   FSP binary base address.\r
 \r
 **/\r
-UINT32\r
+UINTN\r
 EFIAPI\r
 AsmGetFspBaseAddress (\r
   VOID\r
@@ -82,7 +82,7 @@ AsmGetFspBaseAddress (
   @return   FSP binary base address.\r
 \r
 **/\r
-UINT32\r
+UINTN\r
 EFIAPI\r
 AsmGetFspInfoHeader (\r
   VOID\r
index c91ea4a78ff1ebb17252430319dc64fce3153add..598fdb9ec5be91ab870f5a94c4cff79d069a79b0 100644 (file)
   The callee should not use XMM6/XMM7.\r
   The return address is saved in MM7.\r
 \r
-  @retval in saved in EAX - 0 means platform initialization success.\r
+  @retval in saved in EAX/RAX - 0 means platform initialization success.\r
                             other means platform initialization fail.\r
 **/\r
-UINT32\r
+UINTN\r
 EFIAPI\r
 SecPlatformInit (\r
   VOID\r
@@ -37,10 +37,10 @@ SecPlatformInit (
 \r
   @param[in] FsptUpdDataPtr     Address pointer to the FSPT_UPD data structure. It is saved in ESP.\r
 \r
-  @retval in saved in EAX - 0 means Microcode is loaded successfully.\r
+  @retval in saved in EAX/RAX - 0 means Microcode is loaded successfully.\r
                             other means Microcode is not loaded successfully.\r
 **/\r
-UINT32\r
+UINTN\r
 EFIAPI\r
 LoadMicrocode (\r
   IN  VOID  *FsptUpdDataPtr\r
@@ -56,10 +56,10 @@ LoadMicrocode (
 \r
   @param[in] FsptUpdDataPtr     Address pointer to the FSPT_UPD data structure. It is saved in ESP.\r
 \r
-  @retval in saved in EAX - 0 means CAR initialization success.\r
+  @retval in saved in EAX/RAX - 0 means CAR initialization success.\r
                             other means CAR initialization fail.\r
 **/\r
-UINT32\r
+UINTN\r
 EFIAPI\r
 SecCarInit (\r
   IN  VOID  *FsptUpdDataPtr\r