summaryrefslogtreecommitdiff
path: root/IntelFspWrapperPkg
diff options
context:
space:
mode:
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.