summaryrefslogtreecommitdiffstats
path: root/IntelFspWrapperPkg
diff options
context:
space:
mode:
authorYao, Jiewen <Jiewen.Yao@intel.com>2015-04-23 08:53:39 +0000
committerjyao1 <jyao1@Edk2>2015-04-23 08:53:39 +0000
commit88a539ca5f791000a1d033fbcf9c6c01ad9b9fe0 (patch)
tree02bf24b4aa64829f17052e04c1dd2480ee209729 /IntelFspWrapperPkg
parent9da591867c0bad1abbe17a321dc5b16d95226c6a (diff)
downloadedk2-88a539ca5f791000a1d033fbcf9c6c01ad9b9fe0.tar.gz
edk2-88a539ca5f791000a1d033fbcf9c6c01ad9b9fe0.tar.bz2
edk2-88a539ca5f791000a1d033fbcf9c6c01ad9b9fe0.zip
IntelFspWrapperPkg update for FSP1.1
-- Add BootLoaderTolumSize support -- Fix LibraryClasses declaration in DEC file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com> Reviewed-by: "Ma, Maurice" <maurice.ma@intel.com> Reviewed-by: "Rangarajan, Ravi P" <ravi.p.rangarajan@intel.com> Reviewed-by: "Mudusuru, Giri P" <giri.p.mudusuru@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17197 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFspWrapperPkg')
-rw-r--r--IntelFspWrapperPkg/FspInitPei/FspInitPeiV1.c1
-rw-r--r--IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c1
-rw-r--r--IntelFspWrapperPkg/Include/Library/FspPlatformInfoLib.h13
-rw-r--r--IntelFspWrapperPkg/IntelFspWrapperPkg.dec8
-rw-r--r--IntelFspWrapperPkg/Library/BaseFspPlatformInfoLibSample/FspPlatformInfoLibSample.c16
5 files changed, 35 insertions, 4 deletions
diff --git a/IntelFspWrapperPkg/FspInitPei/FspInitPeiV1.c b/IntelFspWrapperPkg/FspInitPei/FspInitPeiV1.c
index f6ffecb2ca..da7f8238d7 100644
--- a/IntelFspWrapperPkg/FspInitPei/FspInitPeiV1.c
+++ b/IntelFspWrapperPkg/FspInitPei/FspInitPeiV1.c
@@ -97,6 +97,7 @@ PeiFspInit (
ASSERT(sizeof(FspUpdRgn) >= UpdRegionSize);
ZeroMem (FspUpdRgn, UpdRegionSize);
FspRtBuffer.UpdDataRgnPtr = UpdateFspUpdConfigs (FspUpdRgn);
+ FspRtBuffer.BootLoaderTolumSize = 0;
ZeroMem (&FspInitParams, sizeof(FspInitParams));
FspInitParams.NvsBufferPtr = GetNvsBuffer ();
diff --git a/IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c b/IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c
index 7cad84effb..f11015e993 100644
--- a/IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c
+++ b/IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c
@@ -164,6 +164,7 @@ PeiFspMemoryInit (
ASSERT(sizeof(FspUpdRgn) >= UpdRegionSize);
ZeroMem (FspUpdRgn, UpdRegionSize);
FspRtBuffer.UpdDataRgnPtr = UpdateFspUpdConfigs (FspUpdRgn);
+ FspRtBuffer.BootLoaderTolumSize = GetBootLoaderTolumSize ();
ZeroMem (&FspMemoryInitParams, sizeof(FspMemoryInitParams));
FspMemoryInitParams.NvsBufferPtr = GetNvsBuffer ();
diff --git a/IntelFspWrapperPkg/Include/Library/FspPlatformInfoLib.h b/IntelFspWrapperPkg/Include/Library/FspPlatformInfoLib.h
index c997ea8b22..e5bb2c2125 100644
--- a/IntelFspWrapperPkg/Include/Library/FspPlatformInfoLib.h
+++ b/IntelFspWrapperPkg/Include/Library/FspPlatformInfoLib.h
@@ -69,6 +69,19 @@ UpdateFspUpdConfigs (
);
/**
+ Get BootLoader Tolum size.
+
+ @note At this point, memory is NOT ready, PeiServices are available to use.
+
+ @return BootLoader Tolum size.
+**/
+UINT32
+EFIAPI
+GetBootLoaderTolumSize (
+ VOID
+ );
+
+/**
Get TempRamExit parameter.
@note At this point, memory is ready, PeiServices are available to use.
diff --git a/IntelFspWrapperPkg/IntelFspWrapperPkg.dec b/IntelFspWrapperPkg/IntelFspWrapperPkg.dec
index b7e81d3a92..bfed1cc97a 100644
--- a/IntelFspWrapperPkg/IntelFspWrapperPkg.dec
+++ b/IntelFspWrapperPkg/IntelFspWrapperPkg.dec
@@ -23,16 +23,16 @@
[LibraryClasses]
## @libraryclass Provide FSP API related function.
- FspApiLib|IntelFspWrapperPkg/Include/Library/FspApiLib.h
+ FspApiLib|Include/Library/FspApiLib.h
## @libraryclass Provide FSP hob process related function.
- FspHobProcessLib|IntelFspWrapperPkg/Include/Library/FspHobProcessLib.h
+ FspHobProcessLib|Include/Library/FspHobProcessLib.h
## @libraryclass Provide FSP platform information related function.
- FspPlatformInfoLib|IntelFspWrapperPkg/Include/Library/FspPlatformInfoLib.h
+ FspPlatformInfoLib|Include/Library/FspPlatformInfoLib.h
## @libraryclass Provide FSP wrapper platform sec related function.
- FspPlatformSecLib|IntelFspWrapperPkg/Include/Library/FspPlatformSecLib.h
+ FspPlatformSecLib|Include/Library/FspPlatformSecLib.h
[Guids]
#
diff --git a/IntelFspWrapperPkg/Library/BaseFspPlatformInfoLibSample/FspPlatformInfoLibSample.c b/IntelFspWrapperPkg/Library/BaseFspPlatformInfoLibSample/FspPlatformInfoLibSample.c
index d21c5665d9..903e26eefa 100644
--- a/IntelFspWrapperPkg/Library/BaseFspPlatformInfoLibSample/FspPlatformInfoLibSample.c
+++ b/IntelFspWrapperPkg/Library/BaseFspPlatformInfoLibSample/FspPlatformInfoLibSample.c
@@ -83,6 +83,22 @@ UpdateFspUpdConfigs (
}
/**
+ Get BootLoader Tolum size.
+
+ @note At this point, memory is NOT ready, PeiServices are available to use.
+
+ @return BootLoader Tolum size.
+**/
+UINT32
+EFIAPI
+GetBootLoaderTolumSize (
+ VOID
+ )
+{
+ return 0;
+}
+
+/**
Get TempRamExit parameter.
@note At this point, memory is ready, PeiServices are available to use.