diff options
author | Matthijs Lavrijsen <mattiwatti@gmail.com> | 2023-03-26 18:04:41 +0200 |
---|---|---|
committer | Matthijs Lavrijsen <mattiwatti@gmail.com> | 2023-03-26 18:04:41 +0200 |
commit | 9c35789cf813bb80fcc4be8475ccd9cd149ddcb3 (patch) | |
tree | 0efbbfb1151f12cc41f9504d18b3bd1eb37d56fe /Application | |
parent | 3e9c9868b0de9e4a245d1cee23639c18628e1b74 (diff) |
Loader: remove BdsLibConnectAllDriversToAllControllers
EfiBootManagerConnectAll provides this functionality now.
Diffstat (limited to 'Application')
-rw-r--r-- | Application/Loader/Loader.c | 67 |
1 files changed, 1 insertions, 66 deletions
diff --git a/Application/Loader/Loader.c b/Application/Loader/Loader.c index 7165736..61b296c 100644 --- a/Application/Loader/Loader.c +++ b/Application/Loader/Loader.c @@ -11,7 +11,6 @@ #include <Library/DevicePathLib.h> #include <Library/UefiBootServicesTableLib.h> #include <Library/UefiBootManagerLib.h> -#include <Library/DxeServicesTableLib.h> #include <Library/UefiRuntimeServicesTableLib.h> @@ -215,70 +214,6 @@ SetHighestAvailableTextMode( return Status; } -// -// Connects all current system handles recursively. -// -STATIC -EFI_STATUS -EFIAPI -BdsLibConnectAllEfi( - VOID - ) -{ - UINTN HandleCount; - EFI_HANDLE *HandleBuffer; - CONST EFI_STATUS Status = gBS->LocateHandleBuffer(AllHandles, - NULL, - NULL, - &HandleCount, - &HandleBuffer); - if (EFI_ERROR(Status)) - return Status; - - for (UINTN Index = 0; Index < HandleCount; ++Index) - { - gBS->ConnectController(HandleBuffer[Index], - NULL, - NULL, - TRUE); - } - - if (HandleBuffer != NULL) - FreePool(HandleBuffer); - - return EFI_SUCCESS; -} - -// -// Connects all drivers to all controllers. -// -STATIC -VOID -EFIAPI -BdsLibConnectAllDriversToAllControllers( - VOID - ) -{ - EFI_STATUS Status; - - do - { - // - // Connect All EFI 1.10 drivers following EFI 1.10 algorithm - // - BdsLibConnectAllEfi(); - - // - // Check to see if it's possible to dispatch an more DXE drivers. - // The BdsLibConnectAllEfi() may have made new DXE drivers show up. - // If anything is Dispatched Status == EFI_SUCCESS and we will try - // the connect again. - // - Status = gDS->Dispatch(); - - } while (!EFI_ERROR(Status)); -} - STATIC EFI_STATUS EFIAPI @@ -622,7 +557,7 @@ UefiMain( // // Connect all drivers to all controllers // - BdsLibConnectAllDriversToAllControllers(); + EfiBootManagerConnectAll(); // // Set the highest available console mode and clear the screen |