Skip to content

Commit 5bfa808

Browse files
committed
Fix build with current EDK2 master
Re-add the missing headers for EFI_LEGACY_BIOS_PROTOCOL and gEfiLegacyBiosGuid which were removed from OvmfPkg in tianocore/edk2@9d4becd. Neither OVMF nor EfiGuard actually *needs* the CSM for anything, but being able to check for the presence of the legacy BIOS protocol is still important in order to determine if we are actually booting a legacy BIOS boot option. This allows us to then inform the user that what they are doing is not suppported and most likely a mistake. Fixes #119
1 parent b55a50a commit 5bfa808

File tree

4 files changed

+1562
-1
lines changed

4 files changed

+1562
-1
lines changed

Application/Loader/Loader.inf

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
MdePkg/MdePkg.dec
1515
EfiGuardPkg/EfiGuardPkg.dec
1616
MdeModulePkg/MdeModulePkg.dec
17-
OvmfPkg/OvmfPkg.dec
1817

1918
[LibraryClasses]
2019
UefiApplicationEntryPoint

EfiGuardPkg.dec

+7
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,10 @@
1616
[Protocols]
1717
## Include/Protocol/EfiGuard.h
1818
gEfiGuardDriverProtocolGuid = { 0x51e4785b, 0xb1e4, 0x4fda, { 0xaf, 0x5f, 0x94, 0x2e, 0xc0, 0x15, 0xf1, 0x7 }}
19+
20+
## Originally in OvmfPkg/Csm/Include/Protocol/LegacyBios.h
21+
gEfiLegacyBiosProtocolGuid = { 0xdb9a1e3d, 0x45cb, 0x4abb, {0x85, 0x3b, 0xe5, 0x38, 0x7f, 0xdb, 0x2e, 0x2d }}
22+
23+
[Guids]
24+
## Originally in OvmfPkg/Csm/Include/Guid/LegacyBios.h
25+
gEfiLegacyBiosGuid = { 0x2e3044ac, 0x879f, 0x490f, {0x97, 0x60, 0xbb, 0xdf, 0xaf, 0x69, 0x5f, 0x50 }}

Include/Guid/LegacyBios.h

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#ifndef _LEGACY_BIOS_H_
2+
#define _LEGACY_BIOS_H_
3+
4+
#ifdef __cplusplus
5+
extern "C" {
6+
#endif
7+
8+
///
9+
/// The Global ID for the Legacy BIOS GUID that must be installed onto the ImageHandle
10+
/// of any module follows the EFI Driver Model and uses the Int86() or FarCall()
11+
/// services of the Legacy BIOS Protocol to produce a standard UEFI I/O Protocol.
12+
///
13+
#define EFI_LEGACY_BIOS_GUID \
14+
{ \
15+
0x2e3044ac, 0x879f, 0x490f, {0x97, 0x60, 0xbb, 0xdf, 0xaf, 0x69, 0x5f, 0x50 } \
16+
}
17+
18+
extern EFI_GUID gEfiLegacyBiosGuid;
19+
20+
#ifdef __cplusplus
21+
}
22+
#endif
23+
24+
#endif

0 commit comments

Comments
 (0)