]> git.proxmox.com Git - mirror_edk2.git/blame - UefiCpuPkg/ResetVector/Vtf0/Vtf0.nasmb
UefiCpuPkg: Support building VTF0 ResetVector during the EDK II build
[mirror_edk2.git] / UefiCpuPkg / ResetVector / Vtf0 / Vtf0.nasmb
CommitLineData
bc252e8e
EB
1;------------------------------------------------------------------------------\r
2; @file\r
3; This file includes all other code files to assemble the reset vector code\r
4;\r
a63f2e24 5; Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.<BR>\r
01a1c0fc 6; This program and the accompanying materials\r
bc252e8e
EB
7; are licensed and made available under the terms and conditions of the BSD License\r
8; which accompanies this distribution. The full text of the license may be found at\r
9; http://opensource.org/licenses/bsd-license.php\r
10;\r
11; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13;\r
14;------------------------------------------------------------------------------\r
15\r
5a1f324d
JJ
16;\r
17; If neither ARCH_IA32 nor ARCH_X64 are defined, then try to include\r
18; Base.h to use the C pre-processor to determine the architecture.\r
19;\r
20%ifndef ARCH_IA32\r
21 %ifndef ARCH_X64\r
22 #include <Base.h>\r
23 #if defined (MDE_CPU_IA32)\r
24 %define ARCH_IA32\r
25 #elif defined (MDE_CPU_X64)\r
26 %define ARCH_X64\r
27 #endif\r
28 %endif\r
29%endif\r
30\r
bc252e8e
EB
31%ifdef ARCH_IA32\r
32 %ifdef ARCH_X64\r
33 %error "Only one of ARCH_IA32 or ARCH_X64 can be defined."\r
34 %endif\r
35%elifdef ARCH_X64\r
36%else\r
37 %error "Either ARCH_IA32 or ARCH_X64 must be defined."\r
38%endif\r
39\r
40%include "CommonMacros.inc"\r
41\r
42%include "PostCodes.inc"\r
43\r
5a1f324d 44%ifdef DEBUG_PORT80\r
bc252e8e
EB
45 %include "Port80Debug.asm"\r
46%elifdef DEBUG_SERIAL\r
47 %include "SerialDebug.asm"\r
48%else\r
5a1f324d 49 %include "DebugDisabled.asm"\r
bc252e8e
EB
50%endif\r
51\r
52%include "Ia32/SearchForBfvBase.asm"\r
53%include "Ia32/SearchForSecEntry.asm"\r
54\r
55%ifdef ARCH_X64\r
84a773d1 56%include "Ia32/Flat32ToFlat64.asm"\r
a63f2e24 57%include "Ia32/PageTables64.asm"\r
bc252e8e
EB
58%endif\r
59\r
84a773d1 60%include "Ia16/Real16ToFlat32.asm"\r
bc252e8e
EB
61%include "Ia16/Init16.asm"\r
62\r
63%include "Main.asm"\r
64\r
65%include "Ia16/ResetVectorVtf0.asm"\r
66\r