]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/ResetVector/ResetVector.nasmb
OvmfPkg: Add AmdSevDxe driver
[mirror_edk2.git] / OvmfPkg / ResetVector / ResetVector.nasmb
CommitLineData
9b9fdbfa
JJ
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; This program and the accompanying materials\r
7; are licensed and made available under the terms and conditions of the BSD License\r
8; which accompanies this distribution. The full text of the license may be found at\r
9; http://opensource.org/licenses/bsd-license.php\r
10;\r
11; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13;\r
14;------------------------------------------------------------------------------\r
15\r
16;\r
17; If neither ARCH_IA32 nor ARCH_X64 are defined, then try to include\r
18; Base.h to use the C pre-processor to determine the architecture.\r
19;\r
20%ifndef ARCH_IA32\r
21 %ifndef ARCH_X64\r
22 #include <Base.h>\r
23 #if defined (MDE_CPU_IA32)\r
24 %define ARCH_IA32\r
25 #elif defined (MDE_CPU_X64)\r
26 %define ARCH_X64\r
27 #endif\r
28 %endif\r
29%endif\r
30\r
31%ifdef ARCH_IA32\r
32 %ifdef ARCH_X64\r
33 %error "Only one of ARCH_IA32 or ARCH_X64 can be defined."\r
34 %endif\r
35%elifdef ARCH_X64\r
36%else\r
37 %error "Either ARCH_IA32 or ARCH_X64 must be defined."\r
38%endif\r
39\r
40%include "CommonMacros.inc"\r
41\r
42%include "PostCodes.inc"\r
43\r
44%ifdef DEBUG_PORT80\r
45 %include "Port80Debug.asm"\r
46%elifdef DEBUG_SERIAL\r
47 %include "SerialDebug.asm"\r
48%else\r
49 %include "DebugDisabled.asm"\r
50%endif\r
51\r
52%include "Ia32/SearchForBfvBase.asm"\r
53%include "Ia32/SearchForSecEntry.asm"\r
54\r
55%ifdef ARCH_X64\r
73d66c58
MH
56 #include <AutoGen.h>\r
57\r
58 %if (FixedPcdGet32 (PcdOvmfSecPageTablesSize) != 0x6000)\r
59 %error "This implementation inherently depends on PcdOvmfSecPageTablesSize"\r
60 %endif\r
61\r
62 %define PT_ADDR(Offset) (FixedPcdGet32 (PcdOvmfSecPageTablesBase) + (Offset))\r
9b9fdbfa
JJ
63%include "Ia32/Flat32ToFlat64.asm"\r
64%include "Ia32/PageTables64.asm"\r
65%endif\r
66\r
67%include "Ia16/Real16ToFlat32.asm"\r
68%include "Ia16/Init16.asm"\r
69\r
70%include "Main.asm"\r
71\r
72%include "Ia16/ResetVectorVtf0.asm"\r
73\r