summaryrefslogtreecommitdiffstats
path: root/IntelFspPkg/Library/BaseFspCommonLib/FspCommonLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'IntelFspPkg/Library/BaseFspCommonLib/FspCommonLib.c')
-rw-r--r--IntelFspPkg/Library/BaseFspCommonLib/FspCommonLib.c21
1 files changed, 19 insertions, 2 deletions
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.
@@ -332,6 +332,23 @@ GetFspInfoHeader (
}
/**
+ 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.
@retval API calling mode