2 ; Provide FSP helper function.
4 ; Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
5 ; SPDX-License-Identifier: BSD-2-Clause-Patent
10 global ASM_PFX(AsmGetFspBaseAddress)
11 ASM_PFX(AsmGetFspBaseAddress):
12 call ASM_PFX(AsmGetFspInfoHeader)
17 global ASM_PFX(AsmGetFspInfoHeader)
18 ASM_PFX(AsmGetFspInfoHeader):
19 lea rax, [ASM_PFX(AsmGetFspInfoHeader)]
20 DB 0x48, 0x2d ; sub rax, 0x????????
21 global ASM_PFX(FspInfoHeaderRelativeOff)
22 ASM_PFX(FspInfoHeaderRelativeOff):
23 DD 0x12345678 ; This value must be patched by the build script
27 global ASM_PFX(AsmGetFspInfoHeaderNoStack)
28 ASM_PFX(AsmGetFspInfoHeaderNoStack):
29 lea rax, [ASM_PFX(AsmGetFspInfoHeader)]
30 lea rcx, [ASM_PFX(FspInfoHeaderRelativeOff)]