From: Bernhard Urban Date: Sun, 20 Sep 2009 21:57:56 +0000 (+0200) Subject: do-while for mr. stack! X-Git-Tag: demo0~27 X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=ppcskel.git;a=commitdiff_plain;h=113b79747a3b5c358f1b1f0af5c562ca5a5bd2eb do-while for mr. stack! --- 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));