]>
Commit | Line | Data |
---|---|---|
cf1d4549 JY |
1 | ;; @file\r |
2 | ; Provide FSP API entry points.\r | |
3 | ;\r | |
4 | ; Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r | |
9672cd30 | 5 | ; SPDX-License-Identifier: BSD-2-Clause-Patent\r |
cf1d4549 JY |
6 | ;;\r |
7 | \r | |
8 | SECTION .text\r | |
9 | \r | |
10 | ;\r | |
11 | ; Following functions will be provided in C\r | |
12 | ;\r | |
13 | extern ASM_PFX(FspApiCommon)\r | |
14 | \r | |
15 | ;----------------------------------------------------------------------------\r | |
16 | ; NotifyPhase API\r | |
17 | ;\r | |
18 | ; This FSP API will notify the FSP about the different phases in the boot\r | |
19 | ; process\r | |
20 | ;\r | |
21 | ;----------------------------------------------------------------------------\r | |
22 | global ASM_PFX(NotifyPhaseApi)\r | |
23 | ASM_PFX(NotifyPhaseApi):\r | |
24 | mov eax, 2 ; FSP_API_INDEX.NotifyPhaseApiIndex\r | |
25 | jmp ASM_PFX(FspApiCommon)\r | |
26 | \r | |
27 | ;----------------------------------------------------------------------------\r | |
28 | ; FspSiliconInit API\r | |
29 | ;\r | |
30 | ; This FSP API initializes the CPU and the chipset including the IO\r | |
31 | ; controllers in the chipset to enable normal operation of these devices.\r | |
32 | ;\r | |
33 | ;----------------------------------------------------------------------------\r | |
34 | global ASM_PFX(FspSiliconInitApi)\r | |
35 | ASM_PFX(FspSiliconInitApi):\r | |
36 | mov eax, 5 ; FSP_API_INDEX.FspSiliconInitApiIndex\r | |
37 | jmp ASM_PFX(FspApiCommon)\r | |
38 | \r | |
39 | ;----------------------------------------------------------------------------\r | |
40 | ; FspApiCommonContinue API\r | |
41 | ;\r | |
42 | ; This is the FSP API common entry point to resume the FSP execution\r | |
43 | ;\r | |
44 | ;----------------------------------------------------------------------------\r | |
45 | global ASM_PFX(FspApiCommonContinue)\r | |
46 | ASM_PFX(FspApiCommonContinue):\r | |
47 | jmp $\r | |
48 | ret\r | |
49 | \r | |
c69071bd SB |
50 | ;----------------------------------------------------------------------------\r |
51 | ; TempRamInit API\r | |
52 | ;\r | |
53 | ; Empty function for WHOLEARCHIVE build option\r | |
54 | ;\r | |
55 | ;----------------------------------------------------------------------------\r | |
56 | global ASM_PFX(TempRamInitApi)\r | |
57 | ASM_PFX(TempRamInitApi):\r | |
58 | jmp $\r | |
59 | ret\r | |
60 | \r | |
cf1d4549 JY |
61 | ;----------------------------------------------------------------------------\r |
62 | ; Module Entrypoint API\r | |
63 | ;----------------------------------------------------------------------------\r | |
64 | global ASM_PFX(_ModuleEntryPoint)\r | |
65 | ASM_PFX(_ModuleEntryPoint):\r | |
66 | jmp $\r | |
67 | \r |