Do not start services as this only slows down boot process significantly
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
025e05013d
commit
350df87bcc
@ -46,14 +46,12 @@ BlLoadEfiModules()
|
|||||||
PEFI_LOADED_IMAGE_PROTOCOL LoadedImage;
|
PEFI_LOADED_IMAGE_PROTOCOL LoadedImage;
|
||||||
PEFI_FILE_HANDLE FsHandle, ModulesDir;
|
PEFI_FILE_HANDLE FsHandle, ModulesDir;
|
||||||
EFI_HANDLE DiskHandle, ModuleHandle;
|
EFI_HANDLE DiskHandle, ModuleHandle;
|
||||||
PEFI_HANDLE Handles;
|
|
||||||
SIZE_T Length;
|
SIZE_T Length;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
UINT_PTR DirSize, ModulesCount;
|
UINT_PTR DirSize;
|
||||||
CHAR Buffer[1024];
|
CHAR Buffer[1024];
|
||||||
WCHAR ModulePath[1024];
|
WCHAR ModulePath[1024];
|
||||||
PWCHAR ModuleName;
|
PWCHAR ModuleName;
|
||||||
UINT Index;
|
|
||||||
|
|
||||||
/* Open EFI volume */
|
/* Open EFI volume */
|
||||||
Status = BlOpenVolume(NULL, &DiskHandle, &FsHandle);
|
Status = BlOpenVolume(NULL, &DiskHandle, &FsHandle);
|
||||||
@ -223,27 +221,6 @@ BlLoadEfiModules()
|
|||||||
BlDbgPrint(L"OK\n");
|
BlDbgPrint(L"OK\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get list of all handles */
|
|
||||||
Status = EfiSystemTable->BootServices->LocateHandleBuffer(AllHandles, NULL, NULL, &ModulesCount, &Handles);
|
|
||||||
if(Status != STATUS_EFI_SUCCESS)
|
|
||||||
{
|
|
||||||
/* Failed to get list of handles */
|
|
||||||
BlDbgPrint(L"WARNING: Unable to get a list of handles, some modules might not work properly\n");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* Iterate through a list of handles */
|
|
||||||
BlDbgPrint(L"Starting services for %lu handles\n", ModulesCount);
|
|
||||||
for(Index = 0; Index < ModulesCount; Index++)
|
|
||||||
{
|
|
||||||
/* Start services for all loaded modules */
|
|
||||||
EfiSystemTable->BootServices->ConnectController(Handles[Index], NULL, NULL, TRUE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Free memory */
|
|
||||||
BlEfiMemoryFreePool(Handles);
|
|
||||||
|
|
||||||
/* Close directory and volume */
|
/* Close directory and volume */
|
||||||
ModulesDir->Close(ModulesDir);
|
ModulesDir->Close(ModulesDir);
|
||||||
BlCloseVolume(DiskHandle);
|
BlCloseVolume(DiskHandle);
|
||||||
|
Loading…
Reference in New Issue
Block a user