diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2015-06-30 11:07:58 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2015-07-04 14:22:56 -0400 |
commit | 1202f03583f3b8b46e2de6b82630054d53e24801 (patch) | |
tree | a7bad11706e8f86ed577511becb42effacbf8a99 /src/boot.c | |
parent | 6cfebb4eb13411783b52804999ed6f748e4ad013 (diff) | |
download | seabios-1202f03583f3b8b46e2de6b82630054d53e24801.tar.gz |
bootorder: Update "extra pci root" buses bootorder format to match qemu
The QEMU code will use the prefix "/pci@i0cf8,%x/" for devices on
extra pci root buses, so change the SeaBIOS code to match that.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/boot.c')
-rw-r--r-- | src/boot.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -112,9 +112,9 @@ build_pci_path(char *buf, int max, const char *devname, struct pci_device *pci) if (pci->parent) { p = build_pci_path(p, max, "pci-bridge", pci->parent); } else { - if (pci->rootbus) - p += snprintf(p, max, "/pci-root@%x", pci->rootbus); p += snprintf(p, buf+max-p, "%s", FW_PCI_DOMAIN); + if (pci->rootbus) + p += snprintf(p, buf+max-p, ",%x", pci->rootbus); } int dev = pci_bdf_to_dev(pci->bdf), fn = pci_bdf_to_fn(pci->bdf); |