IntelFsp2WrapperPkg: Support 64bit FspResetType for X64 build.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3999 FspResetType will be either 32bit or 64 bit basing on the build type. 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>
This commit is contained in:
committed by
mergify[bot]
parent
140446cd59
commit
24eac4caf3
@@ -121,6 +121,10 @@ Execute32BitCode (
|
||||
//
|
||||
AsmReadIdtr (&Idtr);
|
||||
Status = AsmExecute32BitCode (Function, Param1, Param2, &mGdt);
|
||||
//
|
||||
// Convert FSP Status code from 32bit to 64bit to match caller expectation.
|
||||
//
|
||||
Status = (Status & ~(BIT31 + BIT30)) | LShiftU64 (Status & (BIT31 + BIT30), 32);
|
||||
AsmWriteIdtr (&Idtr);
|
||||
|
||||
return Status;
|
||||
@@ -150,4 +154,3 @@ Execute64BitCode (
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user