X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=IntelFspPkg%2FLibrary%2FBaseFspCommonLib%2FFspCommonLib.c;fp=IntelFspPkg%2FLibrary%2FBaseFspCommonLib%2FFspCommonLib.c;h=f80dff1a56b5cf3aaede8f134af927b2b55487f6;hb=9da591867c0bad1abbe17a321dc5b16d95226c6a;hp=2c0c3ad9bb2a7027d8aa7564727097150cd70f7c;hpb=3b7f0a488be0ca7a2a8e4c352b0e10496bee9530;p=mirror_edk2.git diff --git a/IntelFspPkg/Library/BaseFspCommonLib/FspCommonLib.c b/IntelFspPkg/Library/BaseFspCommonLib/FspCommonLib.c index 2c0c3ad9bb..f80dff1a56 100644 --- a/IntelFspPkg/Library/BaseFspCommonLib/FspCommonLib.c +++ b/IntelFspPkg/Library/BaseFspCommonLib/FspCommonLib.c @@ -144,7 +144,7 @@ SetFspContinuationFuncParameter ( /** - This function changes the Bootloader return address in stack. + This function changes the BootLoader return address in stack. @param[in] ReturnAddress Address to return. @@ -162,7 +162,7 @@ SetFspApiReturnAddress ( } /** - This function set the API status code returned to the bootloader. + This function set the API status code returned to the BootLoader. @param[in] ReturnStatus Status code to return. @@ -331,6 +331,23 @@ GetFspInfoHeader ( return GetFspGlobalDataPointer()->FspInfoHeader; } +/** + This function gets the VPD data pointer. + + @return VpdDataRgnPtr VPD data pointer. +**/ +VOID * +EFIAPI +GetFspVpdDataPointer ( + VOID + ) +{ + FSP_INFO_HEADER *FspInfoHeader; + + FspInfoHeader = GetFspInfoHeader (); + return (VOID *)(FspInfoHeader->ImageBase + FspInfoHeader->CfgRegionOffset); +} + /** This function gets FSP API calling mode.