]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFspPkg/FspSecCore/Ia32/FspHelper.asm
Add dual FSP binaries support.
[mirror_edk2.git] / IntelFspPkg / FspSecCore / Ia32 / FspHelper.asm
CommitLineData
9da59186
JY
1;; @file\r
2; Provide FSP helper function.\r
3;\r
4; Copyright (c) 2015, 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 .586p\r
15 .model flat,C\r
16 .code\r
17\r
3b17b245 18FspInfoHeaderRelativeOff PROC NEAR PUBLIC\r
9da59186
JY
19 ;\r
20 ; This value will be pached by the build script\r
21 ;\r
22 DD 012345678h\r
23FspInfoHeaderRelativeOff ENDP\r
24\r
25GetFspBaseAddress PROC NEAR PUBLIC\r
26 mov eax, GetFspBaseAddress\r
27 sub eax, dword ptr [FspInfoHeaderRelativeOff]\r
28 add eax, 01Ch\r
29 mov eax, dword ptr [eax]\r
30 ret\r
31GetFspBaseAddress ENDP\r
32\r
3b17b245
MM
33GetFspInfoHdr PROC NEAR PUBLIC\r
34 mov eax, GetFspBaseAddress\r
35 sub eax, dword ptr [FspInfoHeaderRelativeOff]\r
36 ret\r
37GetFspInfoHdr ENDP\r
38\r
9da59186 39 END