]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryS.nasm
cdc1149d6c35a358a75b85e3d8f8d3ec6dbdcc3c
[mirror_edk2.git] / IntelFsp2Pkg / FspSecCore / Ia32 / FspApiEntryS.nasm
1 ;; @file
2 ; Provide FSP API entry points.
3 ;
4 ; Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
5 ; This program and the accompanying materials
6 ; are licensed and made available under the terms and conditions of the BSD License
7 ; which accompanies this distribution. The full text of the license may be found at
8 ; http://opensource.org/licenses/bsd-license.php.
9 ;
10 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 ;;
13
14 SECTION .text
15
16 ;
17 ; Following functions will be provided in C
18 ;
19 extern ASM_PFX(FspApiCommon)
20
21 ;----------------------------------------------------------------------------
22 ; NotifyPhase API
23 ;
24 ; This FSP API will notify the FSP about the different phases in the boot
25 ; process
26 ;
27 ;----------------------------------------------------------------------------
28 global ASM_PFX(NotifyPhaseApi)
29 ASM_PFX(NotifyPhaseApi):
30 mov eax, 2 ; FSP_API_INDEX.NotifyPhaseApiIndex
31 jmp ASM_PFX(FspApiCommon)
32
33 ;----------------------------------------------------------------------------
34 ; FspSiliconInit API
35 ;
36 ; This FSP API initializes the CPU and the chipset including the IO
37 ; controllers in the chipset to enable normal operation of these devices.
38 ;
39 ;----------------------------------------------------------------------------
40 global ASM_PFX(FspSiliconInitApi)
41 ASM_PFX(FspSiliconInitApi):
42 mov eax, 5 ; FSP_API_INDEX.FspSiliconInitApiIndex
43 jmp ASM_PFX(FspApiCommon)
44
45 ;----------------------------------------------------------------------------
46 ; FspApiCommonContinue API
47 ;
48 ; This is the FSP API common entry point to resume the FSP execution
49 ;
50 ;----------------------------------------------------------------------------
51 global ASM_PFX(FspApiCommonContinue)
52 ASM_PFX(FspApiCommonContinue):
53 jmp $
54 ret
55
56 ;----------------------------------------------------------------------------
57 ; Module Entrypoint API
58 ;----------------------------------------------------------------------------
59 global ASM_PFX(_ModuleEntryPoint)
60 ASM_PFX(_ModuleEntryPoint):
61 jmp $
62