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