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