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 @@ -68,6 +68,19 @@ UpdateFspUpdConfigs ( IN OUT VOID *FspUpdRgnPtr ); +/** + 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. 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 @@ -82,6 +82,22 @@ UpdateFspUpdConfigs ( return NULL; } +/** + 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.