;; @file\r
; Provide FSP API entry points.\r
;\r
-; Copyright (c) 2016 - 2020, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2016 - 2022, Intel Corporation. All rights reserved.<BR>\r
; SPDX-License-Identifier: BSD-2-Clause-Patent\r
;;\r
\r
SECTION .text\r
\r
+STACK_SAVED_EAX_OFFSET EQU 4 * 7 ; size of a general purpose register * eax index\r
+\r
;\r
; Following functions will be provided in C\r
;\r
add esp, 8\r
cmp eax, 0\r
jz FspApiCommon2\r
- mov dword [esp + (4 * 7)], eax\r
+ mov dword [esp + STACK_SAVED_EAX_OFFSET], eax\r
popad\r
exit:\r
ret\r