]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryI.nasm
IntelFsp2Pkg/FspSecCore: Add FSP-I API for SMM support.
[mirror_edk2.git] / IntelFsp2Pkg / FspSecCore / Ia32 / FspApiEntryI.nasm
CommitLineData
48249243
HZ
1;; @file\r
2; Provide FSP API entry points.\r
3;\r
4; Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
5; SPDX-License-Identifier: BSD-2-Clause-Patent\r
6;;\r
7\r
8 SECTION .text\r
9\r
10;\r
11; Following functions will be provided in C\r
12;\r
13extern ASM_PFX(FspApiCommon)\r
14\r
15;----------------------------------------------------------------------------\r
16; FspApiCommonContinue API\r
17;\r
18; This is the FSP API common entry point to resume the FSP execution\r
19;\r
20;----------------------------------------------------------------------------\r
21global ASM_PFX(FspApiCommonContinue)\r
22ASM_PFX(FspApiCommonContinue):\r
23 jmp $\r
24\r
25;----------------------------------------------------------------------------\r
26; FspSmmInit API\r
27;\r
28; This FSP API will notify the FSP about the different phases in the boot\r
29; process\r
30;\r
31;----------------------------------------------------------------------------\r
32global ASM_PFX(FspSmmInitApi)\r
33ASM_PFX(FspSmmInitApi):\r
34 mov eax, 7 ; FSP_API_INDEX.FspSmmInitApiIndex\r
35 jmp ASM_PFX(FspApiCommon)\r
36\r
37;----------------------------------------------------------------------------\r
38; Module Entrypoint API\r
39;----------------------------------------------------------------------------\r
40global ASM_PFX(_ModuleEntryPoint)\r
41ASM_PFX(_ModuleEntryPoint):\r
42 jmp $\r
43 ; Add reference to APIs so that it will not be optimized by compiler\r
44 jmp ASM_PFX(FspSmmInitApi)\r