From 113b79747a3b5c358f1b1f0af5c562ca5a5bd2eb Mon Sep 17 00:00:00 2001 From: Bernhard Urban Date: Sun, 20 Sep 2009 23:57:56 +0200 Subject: [PATCH] do-while for mr. stack! --- usb/host/ohci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usb/host/ohci.c b/usb/host/ohci.c index a852be2..d696294 100644 --- a/usb/host/ohci.c +++ b/usb/host/ohci.c @@ -261,10 +261,10 @@ void hcdi_fire() write32(OHCI0_HC_COMMAND_STATUS, OHCI_CLF); /* poll until edhead->headp is null */ - sync_before_read(edhead, sizeof(struct endpoint_descriptor)); - while(LE(edhead->headp)&~0xf) { + do { sync_before_read(edhead, sizeof(struct endpoint_descriptor)); - } + printf("edhead->headp: 0x%08X\n", LE(edhead->headp)); + } while(LE(edhead->headp)&~0xf); struct general_td *n = phys_to_virt(read32(OHCI0_HC_DONE_HEAD) & ~1); printf("hc_done_head: 0x%08X\n", read32(OHCI0_HC_DONE_HEAD)); -- 2.25.1