summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2016-07-11 10:24:16 +0800
committerHao Wu <hao.a.wu@intel.com>2016-07-20 15:43:45 +0800
commitdf6bfe5beaa451a48fdcc86b13e55afe950b7b10 (patch)
treeccb54e0c2154cf6c455a10e375114cfc01c2b57f
parent03a6675d9711a0775b0225a866550a4170e3da45 (diff)
downloadedk2-platforms-df6bfe5beaa451a48fdcc86b13e55afe950b7b10.tar.xz
IntelFsp2WrapperPkg SecFspWrapperPlatformSecLibSample:Update code to pass build
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> (cherry picked from commit f86b9293ecbe0344074817b1a2f6876fa2a629e2)
-rw-r--r--IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/FspWrapperPlatformSecLibSample.c2
-rw-r--r--IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecFspWrapperPlatformSecLibSample.inf4
-rw-r--r--IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecTempRamDone.c13
3 files changed, 10 insertions, 9 deletions
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 <Ppi/SecPerformance.h>
#include <Library/LocalApicLib.h>
+#include <Library/DebugLib.h>
+#include <Library/BaseMemoryLib.h>
/**
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 <PiPei.h>
-#include <Ppi/TemporaryRamDone.h>
-
-#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/PcdLib.h>
-#include <Library/DebugAgentLib.h>
-#include <Library/FspPlatformInfoLib.h>
-#include <Library/FspApiLib.h>
+#include <Library/FspWrapperApiLib.h>
+#include <Library/FspWrapperPlatformLib.h>
+#include <Guid/FspHeaderFile.h>
/**
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);