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 | d9273b7a9d641a3717c5f170cf56537abbe6c217 (patch) | |
tree | 4fd3e5620ffe376d3e71db81a7bb5a46ae00c65d /arch | |
parent | 71743ba29dea115cd948a74dc5e1182c2e27c6f6 (diff) | |
download | openbios-d9273b7a9d641a3717c5f170cf56537abbe6c217.zip openbios-d9273b7a9d641a3717c5f170cf56537abbe6c217.tar.gz openbios-d9273b7a9d641a3717c5f170cf56537abbe6c217.tar.bz2 |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ppc/qemu/init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/ppc/qemu/init.c b/arch/ppc/qemu/init.c index 9056975..45cd77e 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"); |