X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=IntelFsp2Pkg%2FLibrary%2FBaseFspCommonLib%2FFspCommonLib.c;fp=IntelFsp2Pkg%2FLibrary%2FBaseFspCommonLib%2FFspCommonLib.c;h=67e08a9e7eb4cb91702266baf5723171bf7e0752;hp=cd10b63c95d35d1debbf3a718df835bab8d014bc;hb=00aa71ce20472f0a7bc01e735a0c419adf727def;hpb=d40965b9877135028673884abc8f5a9b6b0ef5dc
diff --git a/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c b/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c
index cd10b63c95..67e08a9e7e 100644
--- a/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c
+++ b/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c
@@ -1,6 +1,6 @@
/** @file
- Copyright (c) 2014 - 2019, Intel Corporation. All rights reserved.
+ Copyright (c) 2014 - 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
@@ -38,7 +38,8 @@ typedef struct {
} CONTEXT_STACK;
//
-// API return address +0xB0
+// API return address +0xB8
+// Reserved +0xB0
// push API Parameter2 +0xA8
// push API Parameter1 +0xA0
// push FspInfoHeader +0x98
@@ -54,6 +55,7 @@ typedef struct {
UINT32 Flags[2];
UINT64 FspInfoHeader;
UINT64 ApiParam[2];
+ UINT64 Reserved; // The reserved QWORD is needed for stack alignment in X64.
UINT64 ApiRet; // 64bit stack format is different from the 32bit one due to x64 calling convention
} CONTEXT_STACK_64;