aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2021-09-24 10:34:06 +0200
committerHelge Deller <deller@gmx.de>2021-09-24 11:10:17 +0200
commitbcc894215bc60502046f8cf80ebd7bfc7f7f0c9b (patch)
tree995941c516b35bb89f63964a1cf7f3e345017b2f
parentef4ddc625fcb418f99c431cf6ffda5321ef26b1d (diff)
downloadseabios-hppa-bcc894215bc60502046f8cf80ebd7bfc7f7f0c9b.zip
seabios-hppa-bcc894215bc60502046f8cf80ebd7bfc7f7f0c9b.tar.gz
seabios-hppa-bcc894215bc60502046f8cf80ebd7bfc7f7f0c9b.tar.bz2
boot: Fix qemu bootindex parameter on parisc architecture
On parisc qemu reports the main PCI bus as "/dino-pcihost" instead of "/pci@i0cf8". This is important when using the bootindex parameter for SCSI discs, because the seabios boot code uses this name as prefix when identifying and sorting the bootable discs. Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--src/boot.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/boot.c b/src/boot.c
index f2ded31..31f63ea 100644
--- a/src/boot.c
+++ b/src/boot.c
@@ -49,7 +49,11 @@ glob_prefix(const char *glob, const char *str)
}
}
+#if CONFIG_PARISC
+#define FW_PCI_DOMAIN "/dino-pcihost"
+#else
#define FW_PCI_DOMAIN "/pci@i0cf8"
+#endif
static char *
build_pci_path(char *buf, int max, const char *devname, struct pci_device *pci)