mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[NTOS:IO] Add more enumeration requests during the boot process
This is to ensure that all needed devices are initialized during the early boot CORE-7826
This commit is contained in:
parent
e468da06be
commit
b704292808
1 changed files with 14 additions and 0 deletions
|
@ -1047,6 +1047,13 @@ IopInitializeBootDrivers(VOID)
|
||||||
* See PiQueueDeviceAction function
|
* See PiQueueDeviceAction function
|
||||||
*/
|
*/
|
||||||
PnPBootDriversLoaded = TRUE;
|
PnPBootDriversLoaded = TRUE;
|
||||||
|
|
||||||
|
DbgPrint("BOOT DRIVERS LOADED\n");
|
||||||
|
|
||||||
|
PiQueueDeviceAction(IopRootDeviceNode->PhysicalDeviceObject,
|
||||||
|
PiActionEnumDeviceTree,
|
||||||
|
NULL,
|
||||||
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
CODE_SEG("INIT")
|
CODE_SEG("INIT")
|
||||||
|
@ -1056,6 +1063,8 @@ IopInitializeSystemDrivers(VOID)
|
||||||
{
|
{
|
||||||
PUNICODE_STRING *DriverList, *SavedList;
|
PUNICODE_STRING *DriverList, *SavedList;
|
||||||
|
|
||||||
|
PiPerformSyncDeviceAction(IopRootDeviceNode->PhysicalDeviceObject, PiActionEnumDeviceTree);
|
||||||
|
|
||||||
/* No system drivers on the boot cd */
|
/* No system drivers on the boot cd */
|
||||||
if (KeLoaderBlock->SetupLdrBlock) return; // ExpInTextModeSetup
|
if (KeLoaderBlock->SetupLdrBlock) return; // ExpInTextModeSetup
|
||||||
|
|
||||||
|
@ -1080,6 +1089,11 @@ IopInitializeSystemDrivers(VOID)
|
||||||
|
|
||||||
/* Free the list */
|
/* Free the list */
|
||||||
ExFreePool(SavedList);
|
ExFreePool(SavedList);
|
||||||
|
|
||||||
|
PiQueueDeviceAction(IopRootDeviceNode->PhysicalDeviceObject,
|
||||||
|
PiActionEnumDeviceTree,
|
||||||
|
NULL,
|
||||||
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue