VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/Bhyve/ResetVector/ResetVector.nasmb

Last change on this file was 89983, checked in by vboxsync, 4 years ago

Devices/EFI: Merge edk-stable202105 and openssl 1.1.1j and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1;------------------------------------------------------------------------------
2; @file
3; This file includes all other code files to assemble the reset vector code
4;
5; Copyright (c) 2020, Rebecca Cran <[email protected]>.
6; Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.<BR>
7; SPDX-License-Identifier: BSD-2-Clause-Patent
8;
9;------------------------------------------------------------------------------
10
11;
12; If neither ARCH_IA32 nor ARCH_X64 are defined, then try to include
13; Base.h to use the C pre-processor to determine the architecture.
14;
15%ifndef ARCH_IA32
16 %ifndef ARCH_X64
17 #include <Base.h>
18 #if defined (MDE_CPU_IA32)
19 %define ARCH_IA32
20 #elif defined (MDE_CPU_X64)
21 %define ARCH_X64
22 #endif
23 %endif
24%endif
25
26%ifdef ARCH_IA32
27 %ifdef ARCH_X64
28 %error "Only one of ARCH_IA32 or ARCH_X64 can be defined."
29 %endif
30%elifdef ARCH_X64
31%else
32 %error "Either ARCH_IA32 or ARCH_X64 must be defined."
33%endif
34
35%include "CommonMacros.inc"
36
37%include "PostCodes.inc"
38
39%ifdef DEBUG_PORT80
40 %include "Port80Debug.asm"
41%elifdef DEBUG_SERIAL
42 %include "SerialDebug.asm"
43%else
44 %include "DebugDisabled.asm"
45%endif
46
47%include "Ia32/SearchForBfvBase.asm"
48%include "Ia32/SearchForSecEntry.asm"
49
50%ifdef ARCH_X64
51 #include <AutoGen.h>
52
53 %if (FixedPcdGet32 (PcdOvmfSecPageTablesSize) != 0x6000)
54 %error "This implementation inherently depends on PcdOvmfSecPageTablesSize"
55 %endif
56
57 %define PT_ADDR(Offset) (FixedPcdGet32 (PcdOvmfSecPageTablesBase) + (Offset))
58%include "Ia32/Flat32ToFlat64.asm"
59%include "Ia32/PageTables64.asm"
60%endif
61
62%include "Ia16/Real16ToFlat32.asm"
63%include "Ia16/Init16.asm"
64
65%include "Main.asm"
66
67%include "Ia16/ResetVectorVtf0.asm"
68
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette