]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryI.nasm
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / IntelFsp2Pkg / FspSecCore / Ia32 / FspApiEntryI.nasm
1 ;; @file
2 ; Provide FSP API entry points.
3 ;
4 ; Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
5 ; SPDX-License-Identifier: BSD-2-Clause-Patent
6 ;;
7
8 SECTION .text
9
10 ;
11 ; Following functions will be provided in C
12 ;
13 extern ASM_PFX(FspApiCommon)
14
15 ;----------------------------------------------------------------------------
16 ; FspApiCommonContinue API
17 ;
18 ; This is the FSP API common entry point to resume the FSP execution
19 ;
20 ;----------------------------------------------------------------------------
21 global ASM_PFX(FspApiCommonContinue)
22 ASM_PFX(FspApiCommonContinue):
23 jmp $
24
25 ;----------------------------------------------------------------------------
26 ; TempRamInit API
27 ;
28 ; Empty function for WHOLEARCHIVE build option
29 ;
30 ;----------------------------------------------------------------------------
31 global ASM_PFX(TempRamInitApi)
32 ASM_PFX(TempRamInitApi):
33 jmp $
34 ret
35
36 ;----------------------------------------------------------------------------
37 ; FspSmmInit API
38 ;
39 ; This FSP API will notify the FSP about the different phases in the boot
40 ; process
41 ;
42 ;----------------------------------------------------------------------------
43 global ASM_PFX(FspSmmInitApi)
44 ASM_PFX(FspSmmInitApi):
45 mov eax, 7 ; FSP_API_INDEX.FspSmmInitApiIndex
46 jmp ASM_PFX(FspApiCommon)
47
48 ;----------------------------------------------------------------------------
49 ; Module Entrypoint API
50 ;----------------------------------------------------------------------------
51 global ASM_PFX(_ModuleEntryPoint)
52 ASM_PFX(_ModuleEntryPoint):
53 jmp $
54 ; Add reference to APIs so that it will not be optimized by compiler
55 jmp ASM_PFX(FspSmmInitApi)