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
This commit is contained in:
Yao, Jiewen 2015-04-23 08:53:39 +00:00 committed by jyao1
parent 9da591867c
commit 88a539ca5f
5 changed files with 35 additions and 4 deletions

View File

@ -97,6 +97,7 @@ PeiFspInit (
ASSERT(sizeof(FspUpdRgn) >= UpdRegionSize); ASSERT(sizeof(FspUpdRgn) >= UpdRegionSize);
ZeroMem (FspUpdRgn, UpdRegionSize); ZeroMem (FspUpdRgn, UpdRegionSize);
FspRtBuffer.UpdDataRgnPtr = UpdateFspUpdConfigs (FspUpdRgn); FspRtBuffer.UpdDataRgnPtr = UpdateFspUpdConfigs (FspUpdRgn);
FspRtBuffer.BootLoaderTolumSize = 0;
ZeroMem (&FspInitParams, sizeof(FspInitParams)); ZeroMem (&FspInitParams, sizeof(FspInitParams));
FspInitParams.NvsBufferPtr = GetNvsBuffer (); FspInitParams.NvsBufferPtr = GetNvsBuffer ();

View File

@ -164,6 +164,7 @@ PeiFspMemoryInit (
ASSERT(sizeof(FspUpdRgn) >= UpdRegionSize); ASSERT(sizeof(FspUpdRgn) >= UpdRegionSize);
ZeroMem (FspUpdRgn, UpdRegionSize); ZeroMem (FspUpdRgn, UpdRegionSize);
FspRtBuffer.UpdDataRgnPtr = UpdateFspUpdConfigs (FspUpdRgn); FspRtBuffer.UpdDataRgnPtr = UpdateFspUpdConfigs (FspUpdRgn);
FspRtBuffer.BootLoaderTolumSize = GetBootLoaderTolumSize ();
ZeroMem (&FspMemoryInitParams, sizeof(FspMemoryInitParams)); ZeroMem (&FspMemoryInitParams, sizeof(FspMemoryInitParams));
FspMemoryInitParams.NvsBufferPtr = GetNvsBuffer (); FspMemoryInitParams.NvsBufferPtr = GetNvsBuffer ();

View File

@ -68,6 +68,19 @@ UpdateFspUpdConfigs (
IN OUT VOID *FspUpdRgnPtr 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. Get TempRamExit parameter.

View File

@ -23,16 +23,16 @@
[LibraryClasses] [LibraryClasses]
## @libraryclass Provide FSP API related function. ## @libraryclass Provide FSP API related function.
FspApiLib|IntelFspWrapperPkg/Include/Library/FspApiLib.h FspApiLib|Include/Library/FspApiLib.h
## @libraryclass Provide FSP hob process related function. ## @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. ## @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. ## @libraryclass Provide FSP wrapper platform sec related function.
FspPlatformSecLib|IntelFspWrapperPkg/Include/Library/FspPlatformSecLib.h FspPlatformSecLib|Include/Library/FspPlatformSecLib.h
[Guids] [Guids]
# #

View File

@ -82,6 +82,22 @@ UpdateFspUpdConfigs (
return NULL; 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. Get TempRamExit parameter.