summaryrefslogtreecommitdiff
path: root/IntelFsp2Pkg/Include/Library
diff options
context:
space:
mode:
authorChasel, Chiu <chasel.chiu@intel.com>2019-01-23 12:07:45 +0800
committerChasel, Chiu <chasel.chiu@intel.com>2019-01-28 15:25:53 +0800
commit35897da27ed289f086d2b528800fa60d6ef2407d (patch)
tree40d4816035a2a991a84ed3edd009ea628e055632 /IntelFsp2Pkg/Include/Library
parentf30e4aed99ae126f767e6c8db1f1fde25161273a (diff)
downloadedk2-35897da27ed289f086d2b528800fa60d6ef2407d.zip
edk2-35897da27ed289f086d2b528800fa60d6ef2407d.tar.gz
edk2-35897da27ed289f086d2b528800fa60d6ef2407d.tar.bz2
IntelFsp2Pkg: Add function to get bootloader stack pointer
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1391 FSP on-going enhancement for stack utilization required to know bootloader stack pointer and this pointer can be retrieved by first input parameter address when FSP-M entry API invoked by bootloader. Test: Verified on internal platform and booting successfully Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Cc: Star Zeng <star.zeng@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Chasel Chiu <chasel.chiu@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
Diffstat (limited to 'IntelFsp2Pkg/Include/Library')
-rw-r--r--IntelFsp2Pkg/Include/Library/FspCommonLib.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/IntelFsp2Pkg/Include/Library/FspCommonLib.h b/IntelFsp2Pkg/Include/Library/FspCommonLib.h
index 1c99be3..8708d3e 100644
--- a/IntelFsp2Pkg/Include/Library/FspCommonLib.h
+++ b/IntelFsp2Pkg/Include/Library/FspCommonLib.h
@@ -1,6 +1,6 @@
/** @file
- Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2014 - 2019, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -40,9 +40,9 @@ GetFspGlobalDataPointer (
);
/**
- This function gets back the FSP API first parameter passed by the bootlaoder.
+ This function gets back the FSP API first parameter passed by the bootloader.
- @retval ApiParameter FSP API first parameter passed by the bootlaoder.
+ @retval ApiParameter FSP API first parameter passed by the bootloader.
**/
UINT32
EFIAPI
@@ -51,9 +51,9 @@ GetFspApiParameter (
);
/**
- This function gets back the FSP API second parameter passed by the bootlaoder.
+ This function gets back the FSP API second parameter passed by the bootloader.
- @retval ApiParameter FSP API second parameter passed by the bootlaoder.
+ @retval ApiParameter FSP API second parameter passed by the bootloader.
**/
UINT32
EFIAPI
@@ -62,6 +62,17 @@ GetFspApiParameter2 (
);
/**
+ This function returns the FSP entry stack pointer from address of the first API parameter.
+
+ @retval FSP entry stack pointer.
+**/
+VOID*
+EFIAPI
+GetFspEntryStack (
+ VOID
+ );
+
+/**
This function sets the FSP API parameter in the stack.
@param[in] Value New parameter value.