]>
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 | |
60d8bb9f AA |
38 | %include "PageTables.inc"\r |
39 | \r | |
eee1d2ca | 40 | %ifdef ARCH_X64\r |
60d8bb9f AA |
41 | %ifdef PAGE_TABLE_1G\r |
42 | %include "X64/PageTables1G.asm"\r | |
43 | %else\r | |
44 | %include "X64/PageTables2M.asm"\r | |
45 | %endif\r | |
eee1d2ca JJ |
46 | %endif\r |
47 | \r | |
5a1f324d | 48 | %ifdef DEBUG_PORT80\r |
bc252e8e EB |
49 | %include "Port80Debug.asm"\r |
50 | %elifdef DEBUG_SERIAL\r | |
51 | %include "SerialDebug.asm"\r | |
52 | %else\r | |
5a1f324d | 53 | %include "DebugDisabled.asm"\r |
bc252e8e EB |
54 | %endif\r |
55 | \r | |
56 | %include "Ia32/SearchForBfvBase.asm"\r | |
57 | %include "Ia32/SearchForSecEntry.asm"\r | |
58 | \r | |
59 | %ifdef ARCH_X64\r | |
84a773d1 | 60 | %include "Ia32/Flat32ToFlat64.asm"\r |
a63f2e24 | 61 | %include "Ia32/PageTables64.asm"\r |
bc252e8e EB |
62 | %endif\r |
63 | \r | |
84a773d1 | 64 | %include "Ia16/Real16ToFlat32.asm"\r |
bc252e8e EB |
65 | %include "Ia16/Init16.asm"\r |
66 | \r | |
67 | %include "Main.asm"\r | |
68 | \r | |
69 | %include "Ia16/ResetVectorVtf0.asm"\r | |
70 | \r |