mirror of
https://github.com/reactos/reactos.git
synced 2025-06-05 17:30:32 +00:00
[NTOS:PNP] Enumerate the device tree after loading boot drivers and HAL
This commit is contained in:
parent
334abba1c3
commit
d6ef8f97e9
2 changed files with 13 additions and 0 deletions
|
@ -1122,6 +1122,12 @@ IopInitializeBootDrivers(VOID)
|
||||||
/* Initialize it */
|
/* Initialize it */
|
||||||
IopInitializeBuiltinDriver(LdrEntry);
|
IopInitializeBuiltinDriver(LdrEntry);
|
||||||
|
|
||||||
|
/* Start the devices found by a driver (if any) */
|
||||||
|
PiQueueDeviceAction(IopRootDeviceNode->PhysicalDeviceObject,
|
||||||
|
PiActionEnumRootDevices,
|
||||||
|
NULL,
|
||||||
|
NULL);
|
||||||
|
|
||||||
/* Next entry */
|
/* Next entry */
|
||||||
NextEntry = NextEntry->Flink;
|
NextEntry = NextEntry->Flink;
|
||||||
}
|
}
|
||||||
|
|
|
@ -543,6 +543,13 @@ IoInitSystem(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
/* Initialize HAL Root Bus Driver */
|
/* Initialize HAL Root Bus Driver */
|
||||||
HalInitPnpDriver();
|
HalInitPnpDriver();
|
||||||
|
|
||||||
|
/* Reenumerate what HAL has added (synchronously)
|
||||||
|
* This function call should eventually become a 2nd stage of the PnP initialization */
|
||||||
|
PiQueueDeviceAction(IopRootDeviceNode->PhysicalDeviceObject,
|
||||||
|
PiActionEnumRootDevices,
|
||||||
|
NULL,
|
||||||
|
NULL);
|
||||||
|
|
||||||
/* Make loader block available for the whole kernel */
|
/* Make loader block available for the whole kernel */
|
||||||
IopLoaderBlock = LoaderBlock;
|
IopLoaderBlock = LoaderBlock;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue