diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-10-22 22:30:37 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-10-22 22:30:37 -0400 |
commit | 89eb6241e51bc825cfbc1292802a960dcb48d778 (patch) | |
tree | 8d9f7c0b09717a30c3b81851f6233e78e2b5273c /src/usb-uhci.c | |
parent | 77d227b650c50a7dd0dbaf0ff2ec8681084ddc5f (diff) | |
download | seabios-89eb6241e51bc825cfbc1292802a960dcb48d778.tar.gz |
Handle tsc rollover.
Handle case where timetamp counter overflows while waiting.
Diffstat (limited to 'src/usb-uhci.c')
-rw-r--r-- | src/usb-uhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usb-uhci.c b/src/usb-uhci.c index 5829069c..14a53007 100644 --- a/src/usb-uhci.c +++ b/src/usb-uhci.c @@ -160,7 +160,7 @@ wait_qh(struct uhci_qh *qh) for (;;) { if (qh->element & UHCI_PTR_TERM) return 0; - if (rdtscll() > end) { + if (check_time(end)) { dprintf(1, "Timeout on wait_qh %p\n", qh); return -1; } |