diff --git a/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/FspWrapperPlatformSecLibSample.c b/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/FspWrapperPlatformSecLibSample.c index 19379c20c6..697381ec43 100644 --- a/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/FspWrapperPlatformSecLibSample.c +++ b/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/FspWrapperPlatformSecLibSample.c @@ -18,6 +18,8 @@ #include #include +#include +#include /** This interface conveys state information out of the Security (SEC) phase into PEI. diff --git a/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecFspWrapperPlatformSecLibSample.inf b/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecFspWrapperPlatformSecLibSample.inf index bcb76b8fb6..dfa5c15d2f 100644 --- a/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecFspWrapperPlatformSecLibSample.inf +++ b/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecFspWrapperPlatformSecLibSample.inf @@ -23,7 +23,7 @@ FILE_GUID = 8F1AC44A-CE7E-4E29-95BB-92E321BB1573 MODULE_TYPE = SEC VERSION_STRING = 1.0 - LIBRARY_CLASS = FspWrapperPlatformSecLib + LIBRARY_CLASS = PlatformSecLib # # The following information is for reference only and not required by the build tools. @@ -68,6 +68,8 @@ [LibraryClasses] LocalApicLib SerialPortLib + DebugLib + BaseMemoryLib [Ppis] gEfiSecPlatformInformationPpiGuid ## CONSUMES diff --git a/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecTempRamDone.c b/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecTempRamDone.c index 76d2f42086..b7a622703a 100644 --- a/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecTempRamDone.c +++ b/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecTempRamDone.c @@ -14,14 +14,11 @@ #include -#include - -#include #include #include -#include -#include -#include +#include +#include +#include /** This interface disables temporary memory in SEC Phase. @@ -43,8 +40,8 @@ SecPlatformDisableTemporaryMemory ( DEBUG((DEBUG_INFO, "SecPlatformDisableTemporaryMemory enter\n")); - TempRamExitParam = GetTempRamExitParam (); - Status = CallTempRamExit (FspHeader, TempRamExitParam); + TempRamExitParam = UpdateTempRamExitParam (); + Status = CallTempRamExit (TempRamExitParam); DEBUG((DEBUG_INFO, "TempRamExit status: 0x%x\n", Status)); ASSERT_EFI_ERROR(Status);