]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - UefiCpuPkg/ResetVector/Vtf0/Vtf0.nasmb
UefiCpuPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / UefiCpuPkg / ResetVector / Vtf0 / Vtf0.nasmb
... / ...
CommitLineData
1;------------------------------------------------------------------------------\r
2; @file\r
3; This file includes all other code files to assemble the reset vector code\r
4;\r
5; Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.<BR>\r
6; SPDX-License-Identifier: BSD-2-Clause-Patent\r
7;\r
8;------------------------------------------------------------------------------\r
9\r
10;\r
11; If neither ARCH_IA32 nor ARCH_X64 are defined, then try to include\r
12; Base.h to use the C pre-processor to determine the architecture.\r
13;\r
14%ifndef ARCH_IA32\r
15 %ifndef ARCH_X64\r
16 #include <Base.h>\r
17 #if defined (MDE_CPU_IA32)\r
18 %define ARCH_IA32\r
19 #elif defined (MDE_CPU_X64)\r
20 %define ARCH_X64\r
21 #endif\r
22 %endif\r
23%endif\r
24\r
25%ifdef ARCH_IA32\r
26 %ifdef ARCH_X64\r
27 %error "Only one of ARCH_IA32 or ARCH_X64 can be defined."\r
28 %endif\r
29%elifdef ARCH_X64\r
30%else\r
31 %error "Either ARCH_IA32 or ARCH_X64 must be defined."\r
32%endif\r
33\r
34%include "CommonMacros.inc"\r
35\r
36%include "PostCodes.inc"\r
37\r
38%ifdef ARCH_X64\r
39%include "X64/PageTables.asm"\r
40%endif\r
41\r
42%ifdef DEBUG_PORT80\r
43 %include "Port80Debug.asm"\r
44%elifdef DEBUG_SERIAL\r
45 %include "SerialDebug.asm"\r
46%else\r
47 %include "DebugDisabled.asm"\r
48%endif\r
49\r
50%include "Ia32/SearchForBfvBase.asm"\r
51%include "Ia32/SearchForSecEntry.asm"\r
52\r
53%ifdef ARCH_X64\r
54%include "Ia32/Flat32ToFlat64.asm"\r
55%include "Ia32/PageTables64.asm"\r
56%endif\r
57\r
58%include "Ia16/Real16ToFlat32.asm"\r
59%include "Ia16/Init16.asm"\r
60\r
61%include "Main.asm"\r
62\r
63%include "Ia16/ResetVectorVtf0.asm"\r
64\r