]>
Commit | Line | Data |
---|---|---|
cf1d4549 JY |
1 | ;; @file\r |
2 | ; Provide FSP helper function.\r | |
3 | ;\r | |
4 | ; Copyright (c) 2015 - 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 | global ASM_PFX(FspInfoHeaderRelativeOff)\r | |
17 | ASM_PFX(FspInfoHeaderRelativeOff):\r | |
18 | ;\r | |
19 | ; This value will be pached by the build script\r | |
20 | ;\r | |
21 | DD 0x12345678\r | |
22 | \r | |
23 | global ASM_PFX(AsmGetFspBaseAddress)\r | |
24 | ASM_PFX(AsmGetFspBaseAddress):\r | |
25 | mov eax, ASM_PFX(AsmGetFspInfoHeader)\r | |
26 | sub eax, dword [ASM_PFX(FspInfoHeaderRelativeOff)]\r | |
27 | add eax, 0x1C\r | |
28 | mov eax, dword [eax]\r | |
29 | ret\r | |
30 | \r | |
31 | global ASM_PFX(AsmGetFspInfoHeader)\r | |
32 | ASM_PFX(AsmGetFspInfoHeader):\r | |
33 | mov eax, ASM_PFX(AsmGetFspInfoHeader)\r | |
34 | sub eax, dword [ASM_PFX(FspInfoHeaderRelativeOff)]\r | |
35 | ret\r |