[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [SeaBIOS PATCH] usb: fix boot paths
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [SeaBIOS PATCH] usb: fix boot paths |
Date: |
Fri, 18 Nov 2011 15:59:24 +0100 |
The fw paths for USB devices that SeaBIOS computes are off-by-one,
because QEMU builds those paths with a numbering that starts from one
(see usb_fill_port and usb_hub_initfn in QEMU). Fix that so that
the numbering agrees.
---
src/boot.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/boot.c b/src/boot.c
index 946850d..434bf80 100644
--- a/src/boot.c
+++ b/src/boot.c
@@ -205,9 +205,9 @@ int bootprio_find_usb(struct pci_device *pci, u64 path)
for (i=56; i>0; i-=8) {
int port = (path >> i) & 0xff;
if (port != 0xff)
- p += snprintf(p, desc+sizeof(desc)-p, "/address@hidden", port);
+ p += snprintf(p, desc+sizeof(desc)-p, "/address@hidden", port+1);
}
- snprintf(p, desc+sizeof(desc)-p, "/address@hidden", (u32)(path & 0xff));
+ snprintf(p, desc+sizeof(desc)-p, "/address@hidden", (u32)(path & 0xff)+1);
return find_prio(desc);
}
--
1.7.7.1
- [Qemu-devel] [SeaBIOS PATCH] usb: fix boot paths,
Paolo Bonzini <=