]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/ResetVector/Vtf0/Vtf0.nasmb
UefiCpuPkg: Replace BSD License with BSD+Patent License
[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 %ifdef ARCH_X64
39 %include "X64/PageTables.asm"
40 %endif
41
42 %ifdef DEBUG_PORT80
43 %include "Port80Debug.asm"
44 %elifdef DEBUG_SERIAL
45 %include "SerialDebug.asm"
46 %else
47 %include "DebugDisabled.asm"
48 %endif
49
50 %include "Ia32/SearchForBfvBase.asm"
51 %include "Ia32/SearchForSecEntry.asm"
52
53 %ifdef ARCH_X64
54 %include "Ia32/Flat32ToFlat64.asm"
55 %include "Ia32/PageTables64.asm"
56 %endif
57
58 %include "Ia16/Real16ToFlat32.asm"
59 %include "Ia16/Init16.asm"
60
61 %include "Main.asm"
62
63 %include "Ia16/ResetVectorVtf0.asm"
64