IntelFsp2WrapperPkg SecFspWrapperPlatformSecLibSample:Update code to pass build
authorLiming Gao <liming.gao@intel.com>
Mon, 11 Jul 2016 02:24:16 +0000 (10:24 +0800)
committerLiming Gao <liming.gao@intel.com>
Wed, 20 Jul 2016 05:11:30 +0000 (13:11 +0800)
1. Update its library class to PlatformSecLib
2. Update source code to refer to the matched header file

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Giri Mudusuru <giri.p.mudusuru@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com>
IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/FspWrapperPlatformSecLibSample.c
IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecFspWrapperPlatformSecLibSample.inf
IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecTempRamDone.c

index 19379c20c6775d014e46868e05c9b07b4744ac70..697381ec4344fc924b335ebb1750e6b9b04587e6 100644 (file)
@@ -18,6 +18,8 @@
 #include <Ppi/SecPerformance.h>\r
 \r
 #include <Library/LocalApicLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
 \r
 /**\r
   This interface conveys state information out of the Security (SEC) phase into PEI.\r
index bcb76b8fb6a7efb7f3957c5edafcb0648768172c..dfa5c15d2f25b368deb626c50df666254b534b76 100644 (file)
@@ -23,7 +23,7 @@
   FILE_GUID                      = 8F1AC44A-CE7E-4E29-95BB-92E321BB1573\r
   MODULE_TYPE                    = SEC\r
   VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = FspWrapperPlatformSecLib\r
+  LIBRARY_CLASS                  = PlatformSecLib\r
 \r
 #\r
 # The following information is for reference only and not required by the build tools.\r
@@ -68,6 +68,8 @@
 [LibraryClasses]\r
   LocalApicLib\r
   SerialPortLib\r
+  DebugLib\r
+  BaseMemoryLib\r
 \r
 [Ppis]\r
   gEfiSecPlatformInformationPpiGuid       ## CONSUMES\r
index 76d2f4208691b34263b643492a82116a042c5538..b7a622703af0181d4aac80dfae979331d84e7f44 100644 (file)
 \r
 #include <PiPei.h>\r
 \r
-#include <Ppi/TemporaryRamDone.h>\r
-\r
-#include <Library/BaseMemoryLib.h>\r
 #include <Library/DebugLib.h>\r
 #include <Library/PcdLib.h>\r
-#include <Library/DebugAgentLib.h>\r
-#include <Library/FspPlatformInfoLib.h>\r
-#include <Library/FspApiLib.h>\r
+#include <Library/FspWrapperApiLib.h>\r
+#include <Library/FspWrapperPlatformLib.h>\r
+#include <Guid/FspHeaderFile.h>\r
 \r
 /**\r
 This interface disables temporary memory in SEC Phase.\r
@@ -43,8 +40,8 @@ SecPlatformDisableTemporaryMemory (
 \r
   DEBUG((DEBUG_INFO, "SecPlatformDisableTemporaryMemory enter\n"));\r
 \r
-  TempRamExitParam = GetTempRamExitParam ();\r
-  Status = CallTempRamExit (FspHeader, TempRamExitParam);\r
+  TempRamExitParam = UpdateTempRamExitParam ();\r
+  Status = CallTempRamExit (TempRamExitParam);\r
   DEBUG((DEBUG_INFO, "TempRamExit status: 0x%x\n", Status));\r
   ASSERT_EFI_ERROR(Status);\r
 \r