提交 12da62a7 编写于 作者: V vit9696

OpenCorePlatform: Fixed `AvdiseWindows` not setting `FirmwareFeatures` in NVRAM

上级 6ff3a9fc
......@@ -14,6 +14,7 @@ OpenCore Changelog
- Replaced `SupportsCsm` with `AdviseWindows` enabling UEFI mode
- Fixed issues with default boot path selection on some boards
- Update builtin firmware versions
- Fixed `AvdiseWindows` not setting `FirmwareFeatures` in NVRAM
#### v0.5.4
- Added Enter key handling in boot menu for quick proceed
......
......@@ -340,12 +340,7 @@ OcPlatformUpdateSmbios (
Data.FirmwareFeaturesMask = MacInfo->Smbios.FirmwareFeaturesMask;
//
// Adopt to arbitrary hardware specifics. This bit allows the use
// of legacy Windows installation in boot selector preference pane.
// We need it because Windows systems with EFI partition not being 1st
// are recognised as legacy. See:
// https://github.com/acidanthera/bugtracker/issues/327
// https://sourceforge.net/p/cloverefiboot/tickets/435
// Adopt to arbitrary hardware specifics. See description in NVRAM handling code.
//
if (Config->PlatformInfo.Generic.AdviseWindows) {
Data.FirmwareFeatures |= FW_FEATURE_SUPPORTS_CSM_LEGACY_MODE | FW_FEATURE_SUPPORTS_UEFI_WINDOWS_BOOT;
......@@ -404,6 +399,19 @@ OcPlatformUpdateNvram (
RomSize = sizeof (Config->PlatformInfo.Generic.Rom);
ExFeatures = MacInfo->Smbios.FirmwareFeatures;
ExFeaturesMask = MacInfo->Smbios.FirmwareFeaturesMask;
//
// Adopt to arbitrary hardware specifics. This bit allows the use
// of legacy Windows installation in boot selector preference pane.
// We need it because Windows systems with EFI partition not being 1st
// are recognised as legacy. See:
// https://github.com/acidanthera/bugtracker/issues/327
// https://sourceforge.net/p/cloverefiboot/tickets/435
//
if (Config->PlatformInfo.Generic.AdviseWindows) {
ExFeatures |= FW_FEATURE_SUPPORTS_CSM_LEGACY_MODE | FW_FEATURE_SUPPORTS_UEFI_WINDOWS_BOOT;
ExFeaturesMask |= FW_FEATURE_SUPPORTS_CSM_LEGACY_MODE | FW_FEATURE_SUPPORTS_UEFI_WINDOWS_BOOT;
}
}
Features = (UINT32) ExFeatures;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册