]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - UefiCpuPkg/ResetVector/Vtf0/Vtf0.nasmb
UefiCpuPkg: VTF0 Linear-Address Translation to a 1-GByte Page till 512GB
[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%include "PageTables.inc"\r
39\r
40%ifdef ARCH_X64\r
41 %ifdef PAGE_TABLE_1G\r
42 %include "X64/PageTables1G.asm"\r
43 %else\r
44 %include "X64/PageTables2M.asm"\r
45 %endif\r
46%endif\r
47\r
48%ifdef DEBUG_PORT80\r
49 %include "Port80Debug.asm"\r
50%elifdef DEBUG_SERIAL\r
51 %include "SerialDebug.asm"\r
52%else\r
53 %include "DebugDisabled.asm"\r
54%endif\r
55\r
56%include "Ia32/SearchForBfvBase.asm"\r
57%include "Ia32/SearchForSecEntry.asm"\r
58\r
59%ifdef ARCH_X64\r
60%include "Ia32/Flat32ToFlat64.asm"\r
61%include "Ia32/PageTables64.asm"\r
62%endif\r
63\r
64%include "Ia16/Real16ToFlat32.asm"\r
65%include "Ia16/Init16.asm"\r
66\r
67%include "Main.asm"\r
68\r
69%include "Ia16/ResetVectorVtf0.asm"\r
70\r