1 ;------------------------------------------------------------------------------
3 ; This file includes all other code files to assemble the reset vector code
5 ; Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.<BR>
6 ; This program and the accompanying materials
7 ; are licensed and made available under the terms and conditions of the BSD License
8 ; which accompanies this distribution. The full text of the license may be found at
9 ; http://opensource.org/licenses/bsd-license.php
11 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 ;------------------------------------------------------------------------------
17 ; If neither ARCH_IA32 nor ARCH_X64 are defined, then try to include
18 ; Base.h to use the C pre-processor to determine the architecture.
23 #if defined (MDE_CPU_IA32)
25 #elif defined (MDE_CPU_X64)
33 %error "Only one of ARCH_IA32 or ARCH_X64 can be defined."
37 %error "Either ARCH_IA32 or ARCH_X64 must be defined."
40 %include "CommonMacros.inc"
42 %include "PostCodes.inc"
45 %include "Port80Debug.asm"
47 %include "SerialDebug.asm"
49 %include "DebugDisabled.asm"
52 %include "Ia32/SearchForBfvBase.asm"
53 %include "Ia32/SearchForSecEntry.asm"
58 %if (FixedPcdGet32 (PcdOvmfSecPageTablesSize) != 0x6000)
59 %error "This implementation inherently depends on PcdOvmfSecPageTablesSize"
62 %define PT_ADDR(Offset) (FixedPcdGet32 (PcdOvmfSecPageTablesBase) + (Offset))
63 %include "Ia32/Flat32ToFlat64.asm"
64 %include "Ia32/PageTables64.asm"
67 %include "Ia16/Real16ToFlat32.asm"
68 %include "Ia16/Init16.asm"
72 %include "Ia16/ResetVectorVtf0.asm"