diff --git a/sysutils/edk2/Makefile b/sysutils/edk2/Makefile --- a/sysutils/edk2/Makefile +++ b/sysutils/edk2/Makefile @@ -1,5 +1,6 @@ PORTNAME= edk2 PORTVERSION= g202308 +PORTREVISION= 1 CATEGORIES= sysutils PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ diff --git a/sysutils/edk2/files/patch-OvmfPkg_Bhyve_AcpiPlatformDxe_AcpiPlatform.c b/sysutils/edk2/files/patch-OvmfPkg_Bhyve_AcpiPlatformDxe_AcpiPlatform.c new file mode 100644 --- /dev/null +++ b/sysutils/edk2/files/patch-OvmfPkg_Bhyve_AcpiPlatformDxe_AcpiPlatform.c @@ -0,0 +1,38 @@ +--- OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.c.orig 2023-09-07 08:35:06 UTC ++++ OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.c +@@ -259,19 +259,17 @@ InstallAcpiTables ( + BHYVE_BIOS_PHYSICAL_END, + &Rsdp + ); +- if (EFI_ERROR (Status)) { +- return Status; +- } +- +- Status = InstallAcpiTablesFromRsdp ( +- AcpiTable, +- Rsdp +- ); + if (!EFI_ERROR (Status)) { +- return EFI_SUCCESS; ++ Status = InstallAcpiTablesFromRsdp ( ++ AcpiTable, ++ Rsdp ++ ); ++ if (!EFI_ERROR (Status)) { ++ return EFI_SUCCESS; ++ } + } + +- if (Status != EFI_NOT_FOUND) { ++ if (EFI_ERROR (Status)) { + DEBUG ( + ( + DEBUG_WARN, +@@ -280,7 +278,6 @@ InstallAcpiTables ( + Status + ) + ); +- return Status; + } + + Status = InstallOvmfFvTables (AcpiTable);