diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2019-08-18 21:16:50 +0100 |
---|---|---|
committer | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2019-08-18 21:16:50 +0100 |
commit | 81b1da3a74fc4a72ae2224e4fdf8baed6e8b6443 (patch) | |
tree | 69783a5f0c7a21208b61b06425e07d78ba44bfe6 | |
parent | 538ededddd8dd474f16e44fa2dccc2c7a42f5c10 (diff) | |
download | openbios-81b1da3a74fc4a72ae2224e4fdf8baed6e8b6443.zip openbios-81b1da3a74fc4a72ae2224e4fdf8baed6e8b6443.tar.gz openbios-81b1da3a74fc4a72ae2224e4fdf8baed6e8b6443.tar.bz2 |
x86: set active package and current instance to root device node before probe
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>
-rw-r--r-- | arch/x86/openbios.c | 9 |
1 files changed, 8 insertions, 1 deletions
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(); |