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
commitd9273b7a9d641a3717c5f170cf56537abbe6c217 (patch)
tree4fd3e5620ffe376d3e71db81a7bb5a46ae00c65d
parent71743ba29dea115cd948a74dc5e1182c2e27c6f6 (diff)
downloadqemu-openbios-d9273b7a9d641a3717c5f170cf56537abbe6c217.tar.gz
ppc: 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/ppc/qemu/init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/ppc/qemu/init.c b/arch/ppc/qemu/init.c
index 9056975e..45cd77e4 100644
--- a/arch/ppc/qemu/init.c
+++ b/arch/ppc/qemu/init.c
@@ -859,6 +859,10 @@ arch_of_init(void)
feval("['] ppc-dma-sync to (dma-sync)");
#ifdef CONFIG_DRIVER_PCI
+ push_str("/");
+ fword("find-device");
+ feval("\" /\" open-dev to my-self");
+
switch (machine_id) {
case ARCH_MAC99:
case ARCH_MAC99_U3:
@@ -870,6 +874,8 @@ arch_of_init(void)
default:
ob_pci_init();
}
+
+ feval("0 to my-self");
#endif
printk("\n");