[SeaBIOS] [PATCH 3/3] sdcard: Enable extra debugging on sdcard_waitw() timeout

Kevin O'Connor kevin at koconnor.net
Tue Nov 17 20:58:31 CET 2015


On a timeout, report what register failed to update.

Signed-off-by: Kevin O'Connor <kevin at koconnor.net>
---
 src/hw/sdcard.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/hw/sdcard.c b/src/hw/sdcard.c
index e01e1bb..db3bbe1 100644
--- a/src/hw/sdcard.c
+++ b/src/hw/sdcard.c
@@ -154,6 +154,7 @@ sdcard_waitw(u16 *reg, u16 mask)
         if (v & mask)
             return v;
         if (timer_check(end)) {
+            dprintf(1, "scard_waitw: %p %x %x\n", reg, mask, v);
             warn_timeout();
             return -1;
         }
-- 
2.4.3




More information about the SeaBIOS mailing list