Now that all PCI devices have been converted to new-device...finish-device we can set both the active package and current instance to the root device node before probe, giving all child devices a correct active package and instance chain during creation.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk --- arch/x86/openbios.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/arch/x86/openbios.c b/arch/x86/openbios.c index 8a48a95..1274d2b 100644 --- a/arch/x86/openbios.c +++ b/arch/x86/openbios.c @@ -56,8 +56,15 @@ arch_init( void ) openbios_init(); modules_init(); #ifdef CONFIG_DRIVER_PCI - arch = &default_pci_host; + arch = &default_pci_host; + + push_str("/"); + fword("find-device"); + feval("" /" open-dev to my-self"); + ob_pci_init(); + + feval("0 to my-self"); #endif #ifdef CONFIG_DRIVER_IDE setup_timers();