summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2019-08-18 21:16:50 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2019-08-18 21:16:50 +0100
commit81b1da3a74fc4a72ae2224e4fdf8baed6e8b6443 (patch)
tree69783a5f0c7a21208b61b06425e07d78ba44bfe6
parent538ededddd8dd474f16e44fa2dccc2c7a42f5c10 (diff)
downloadqemu-openbios-81b1da3a74fc4a72ae2224e4fdf8baed6e8b6443.tar.gz
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.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/x86/openbios.c b/arch/x86/openbios.c
index 8a48a958..1274d2b7 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();