]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFsp2Pkg/FspSecCore/Ia32/FspHelper.nasm
IntelFsp2Pkg: Add missing OEM status code defines.
[mirror_edk2.git] / IntelFsp2Pkg / FspSecCore / Ia32 / FspHelper.nasm
CommitLineData
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
16global ASM_PFX(FspInfoHeaderRelativeOff)\r
17ASM_PFX(FspInfoHeaderRelativeOff):\r
18 ;\r
19 ; This value will be pached by the build script\r
20 ;\r
21 DD 0x12345678\r
22\r
23global ASM_PFX(AsmGetFspBaseAddress)\r
24ASM_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
31global ASM_PFX(AsmGetFspInfoHeader)\r
32ASM_PFX(AsmGetFspInfoHeader):\r
33 mov eax, ASM_PFX(AsmGetFspInfoHeader)\r
34 sub eax, dword [ASM_PFX(FspInfoHeaderRelativeOff)]\r
35 ret\r