diff options
author | raywu <raywu@aaeon.com.tw> | 2019-09-12 11:53:22 +0800 |
---|---|---|
committer | raywu <raywu@aaeon.com.tw> | 2019-09-12 11:53:22 +0800 |
commit | 0678772dba5e97dba11bb91401acc0e7f61721e8 (patch) | |
tree | d1fda0400cad0833b8f80d923ec42f8161f17132 | |
parent | 63b0d43c6a6591792a328c838ac2640b83f555ef (diff) | |
download | zprj-0678772dba5e97dba11bb91401acc0e7f61721e8.tar.xz |
(FixedBuildError)[Fixed] HDD could not be Detected under Uefi Mode
-rw-r--r-- | Core/EM/EfiOsBootOptionNames/EfiOsBootOrder.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Core/EM/EfiOsBootOptionNames/EfiOsBootOrder.c b/Core/EM/EfiOsBootOptionNames/EfiOsBootOrder.c index 7e5a03c..1b55eb7 100644 --- a/Core/EM/EfiOsBootOptionNames/EfiOsBootOrder.c +++ b/Core/EM/EfiOsBootOptionNames/EfiOsBootOrder.c @@ -1546,12 +1546,19 @@ BOOLEAN RemoveLegacyGptHdd(BOOT_DEVICE *Device){ SETUP_DATA SetupData; UINTN Size = sizeof(SETUP_DATA); EFI_GUID SetupGuid = SETUP_GUID; +//ray_override / [Fixed] HDD could not be Detected under Uefi Mode / Added >> + EFI_BLOCK_IO_PROTOCOL *BlkIo; +//ray_override / [Fixed] HDD could not be Detected under Uefi Mode / Added << Status = pRS->GetVariable(L"Setup", &SetupGuid, NULL, &Size, &SetupData); //ray_override / [Fixed] HDD could not be Detected under Uefi Mode / Modified >> //// if( Device->BbsEntry->DeviceType != BBS_HARDDISK && SetupData.OnlyBootHDD == 1 ) return TRUE; // if( Device->BbsEntry->Class != PCI_CL_MASS_STOR && SetupData.OnlyBootHDD == 1 ) return TRUE; + Status=pBS->HandleProtocol( + Device->DeviceHandle, &gEfiBlockIoProtocolGuid, &BlkIo + ); + if ( SetupData.OnlyBootHDD == 1 ) { if ( Device->BbsEntry == NULL ) { if ( BlkIo->Media->RemovableMedia == FALSE ) |