Commit | Line | Data |
---|---|---|
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 |
0acd8697 | 6 | ; SPDX-License-Identifier: BSD-2-Clause-Patent\r |
bc252e8e EB |
7 | ;\r |
8 | ;------------------------------------------------------------------------------\r | |
9 | \r | |
5a1f324d JJ |
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 | |
bc252e8e EB |
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 | |
eee1d2ca JJ |
38 | %ifdef ARCH_X64\r |
39 | %include "X64/PageTables.asm"\r | |
40 | %endif\r | |
41 | \r | |
5a1f324d | 42 | %ifdef DEBUG_PORT80\r |
bc252e8e EB |
43 | %include "Port80Debug.asm"\r |
44 | %elifdef DEBUG_SERIAL\r | |
45 | %include "SerialDebug.asm"\r | |
46 | %else\r | |
5a1f324d | 47 | %include "DebugDisabled.asm"\r |
bc252e8e EB |
48 | %endif\r |
49 | \r | |
50 | %include "Ia32/SearchForBfvBase.asm"\r | |
51 | %include "Ia32/SearchForSecEntry.asm"\r | |
52 | \r | |
53 | %ifdef ARCH_X64\r | |
84a773d1 | 54 | %include "Ia32/Flat32ToFlat64.asm"\r |
a63f2e24 | 55 | %include "Ia32/PageTables64.asm"\r |
bc252e8e EB |
56 | %endif\r |
57 | \r | |
84a773d1 | 58 | %include "Ia16/Real16ToFlat32.asm"\r |
bc252e8e EB |
59 | %include "Ia16/Init16.asm"\r |
60 | \r | |
61 | %include "Main.asm"\r | |
62 | \r | |
63 | %include "Ia16/ResetVectorVtf0.asm"\r | |
64 | \r |