Skip to content

Commit

Permalink
IntelFsp2Pkg: Update Function header to support IA32/X64.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ChaselChiu authored and mergify[bot] committed Nov 2, 2022
1 parent 957a15a commit c46204e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions IntelFsp2Pkg/FspSecCore/SecFsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ FspDataPointerFixUp (
@return FSP binary base address.
**/
UINT32
UINTN
EFIAPI
AsmGetFspBaseAddress (
VOID
Expand All @@ -82,7 +82,7 @@ AsmGetFspBaseAddress (
@return FSP binary base address.
**/
UINT32
UINTN
EFIAPI
AsmGetFspInfoHeader (
VOID
Expand Down
12 changes: 6 additions & 6 deletions IntelFsp2Pkg/Include/Library/FspSecPlatformLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
The callee should not use XMM6/XMM7.
The return address is saved in MM7.
@retval in saved in EAX - 0 means platform initialization success.
@retval in saved in EAX/RAX - 0 means platform initialization success.
other means platform initialization fail.
**/
UINT32
UINTN
EFIAPI
SecPlatformInit (
VOID
Expand All @@ -37,10 +37,10 @@ SecPlatformInit (
@param[in] FsptUpdDataPtr Address pointer to the FSPT_UPD data structure. It is saved in ESP.
@retval in saved in EAX - 0 means Microcode is loaded successfully.
@retval in saved in EAX/RAX - 0 means Microcode is loaded successfully.
other means Microcode is not loaded successfully.
**/
UINT32
UINTN
EFIAPI
LoadMicrocode (
IN VOID *FsptUpdDataPtr
Expand All @@ -56,10 +56,10 @@ LoadMicrocode (
@param[in] FsptUpdDataPtr Address pointer to the FSPT_UPD data structure. It is saved in ESP.
@retval in saved in EAX - 0 means CAR initialization success.
@retval in saved in EAX/RAX - 0 means CAR initialization success.
other means CAR initialization fail.
**/
UINT32
UINTN
EFIAPI
SecCarInit (
IN VOID *FsptUpdDataPtr
Expand Down

0 comments on commit c46204e

Please sign in to comment.