]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFsp2Pkg/Include/Library/FspCommonLib.h
IntelFsp2Pkg: Add function to get bootloader stack pointer
[mirror_edk2.git] / IntelFsp2Pkg / Include / Library / FspCommonLib.h
index 1c99be3b1f7248bd03e62fb3b4f5c899c913c787..8708d3ec385d2aed3c22e8e60201ffcea3442634 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-  Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2014 - 2019, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -40,9 +40,9 @@ GetFspGlobalDataPointer (
   );\r
 \r
 /**\r
-  This function gets back the FSP API first parameter passed by the bootlaoder.\r
+  This function gets back the FSP API first parameter passed by the bootloader.\r
 \r
-  @retval ApiParameter FSP API first parameter passed by the bootlaoder.\r
+  @retval ApiParameter FSP API first parameter passed by the bootloader.\r
 **/\r
 UINT32\r
 EFIAPI\r
@@ -51,9 +51,9 @@ GetFspApiParameter (
   );\r
 \r
 /**\r
-  This function gets back the FSP API second parameter passed by the bootlaoder.\r
+  This function gets back the FSP API second parameter passed by the bootloader.\r
 \r
-  @retval ApiParameter FSP API second parameter passed by the bootlaoder.\r
+  @retval ApiParameter FSP API second parameter passed by the bootloader.\r
 **/\r
 UINT32\r
 EFIAPI\r
@@ -61,6 +61,17 @@ GetFspApiParameter2 (
   VOID\r
   );\r
 \r
+/**\r
+  This function returns the FSP entry stack pointer from address of the first API parameter.\r
+\r
+  @retval FSP entry stack pointer.\r
+**/\r
+VOID*\r
+EFIAPI\r
+GetFspEntryStack (\r
+  VOID\r
+  );\r
+\r
 /**\r
   This function sets the FSP API parameter in the stack.\r
 \r