Fix watchdog issues for ColdFire boards.

This commit is contained in:
Wolfgang Denk
2006-05-09 13:49:12 +02:00
parent 1cfefe8cb6
commit 4af099bda9
3 changed files with 18 additions and 8 deletions

View File

@@ -23,6 +23,7 @@
#include <common.h>
#include <command.h>
#include <watchdog.h>
#include <asm/mcfuart.h>
@@ -174,7 +175,9 @@ void serial_puts (const char *s) {
}
int serial_getc(void) {
while(!rs_is_char());
while(!rs_is_char())
WATCHDOG_RESET();
return rs_get_char();
}