Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67565
b: refs/heads/master
c: 17c5c20
h: refs/heads/master
i:
  67563: ee17278
v: v3
  • Loading branch information
Grant Likely committed Oct 10, 2007
1 parent c3b0139 commit 1663235
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c3d514d7e5b394d1df76201aada8956c9605882
refs/heads/master: 17c5c2093624e81acda16fb737e4679750addd7a
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/boot/uartlite.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ static void uartlite_putc(unsigned char c)

static unsigned char uartlite_getc(void)
{
u32 reg = ULITE_STATUS_RXVALID;
while (reg & ULITE_STATUS_RXVALID) /* spin on RXVALID bit */
u32 reg = 0;
while (!(reg & ULITE_STATUS_RXVALID)) /* spin waiting for RXVALID bit */
reg = in_be32(reg_base + ULITE_STATUS);
return in_be32(reg_base + ULITE_RX);
}
Expand Down

0 comments on commit 1663235

Please sign in to comment.