summaryrefslogtreecommitdiff
path: root/Vlv2TbltDevicePkg/FspSupport
diff options
context:
space:
mode:
authorTim He <tim.he@intel.com>2015-03-10 05:52:37 +0000
committertimhe <timhe@Edk2>2015-03-10 05:52:37 +0000
commit359497b7a06b0453cc4f401af0a4669b8d10a907 (patch)
treecd0d05ee73857e2af43753e92bf15def4abcb91f /Vlv2TbltDevicePkg/FspSupport
parent8268a01d2ca41cddbcccac9a4559d37e782eedc2 (diff)
downloadedk2-platforms-359497b7a06b0453cc4f401af0a4669b8d10a907.tar.xz
Sync the branch changes to trunk.
Increase the BiosID VERSION_MINOR to 02. Modified some PCDs as PcdsDynamicEx, and modified FSP support API. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tim He <tim.he@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17035 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Vlv2TbltDevicePkg/FspSupport')
-rw-r--r--Vlv2TbltDevicePkg/FspSupport/Library/PeiFspHobProcessLibVlv2/FspHobProcessLibVlv2.c49
1 files changed, 45 insertions, 4 deletions
diff --git a/Vlv2TbltDevicePkg/FspSupport/Library/PeiFspHobProcessLibVlv2/FspHobProcessLibVlv2.c b/Vlv2TbltDevicePkg/FspSupport/Library/PeiFspHobProcessLibVlv2/FspHobProcessLibVlv2.c
index 944255349c..f0b68cd7b2 100644
--- a/Vlv2TbltDevicePkg/FspSupport/Library/PeiFspHobProcessLibVlv2/FspHobProcessLibVlv2.c
+++ b/Vlv2TbltDevicePkg/FspSupport/Library/PeiFspHobProcessLibVlv2/FspHobProcessLibVlv2.c
@@ -144,7 +144,7 @@ GetPeiMemSize (
**/
EFI_STATUS
EFIAPI
-FspHobProcess (
+FspHobProcessForMemoryResource (
IN VOID *FspHobList
)
{
@@ -375,9 +375,26 @@ FspHobProcess (
SmramHobDescriptorBlock->Descriptor[0].PhysicalSize = TsegSize;
SmramHobDescriptorBlock->Descriptor[0].RegionState = EFI_SMRAM_CLOSED;
}
- //
- // NV Storage Hob
- //
+ return EFI_SUCCESS;
+}
+
+/**
+ BIOS process FspBobList for other data (not Memory Resource Descriptor).
+
+ @param[in] FspHobList Pointer to the HOB data structure produced by FSP.
+
+ @return If platform process the FSP hob list successfully.
+**/
+EFI_STATUS
+EFIAPI
+FspHobProcessForOtherData (
+ IN VOID *FspHobList
+ )
+{
+ EFI_PEI_SERVICES **PeiServices;
+
+ PeiServices = (EFI_PEI_SERVICES **)GetPeiServicesTablePointer ();
+
//
// Other hob for platform
//
@@ -385,3 +402,27 @@ FspHobProcess (
return EFI_SUCCESS;
}
+
+/**
+ BIOS process FspBobList.
+
+ @param[in] FspHobList Pointer to the HOB data structure produced by FSP.
+
+ @return If platform process the FSP hob list successfully.
+**/
+EFI_STATUS
+EFIAPI
+FspHobProcess (
+ IN VOID *FspHobList
+ )
+{
+ EFI_STATUS Status;
+
+ Status = FspHobProcessForMemoryResource (FspHobList);
+ if (EFI_ERROR (Status)) {
+ return Status;
+ }
+ Status = FspHobProcessForOtherData (FspHobList);
+
+ return Status;
+}