diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2011-07-09 18:42:34 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2011-07-10 15:36:04 -0400 |
commit | 5044053c84df0d423cdb61fcf29fe2cba2326f31 (patch) | |
tree | a99e05b68a9e865d7e63941d5e26f7b9c9a848c5 /src/output.c | |
parent | 20cbffed79338aac4cc3ecd90fe9f50fc7cd3086 (diff) | |
download | seabios-5044053c84df0d423cdb61fcf29fe2cba2326f31.tar.gz |
Fix serial port flushing code.
debug_serial() was doing a full flush while debug_serial_flush() was
only doing a partial flush. Fix that.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/output.c')
-rw-r--r-- | src/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output.c b/src/output.c index 5c91ae58..462ffb77 100644 --- a/src/output.c +++ b/src/output.c @@ -49,7 +49,7 @@ debug_serial(char c) if (!CONFIG_DEBUG_SERIAL) return; int timeout = DEBUG_TIMEOUT; - while ((inb(CONFIG_DEBUG_SERIAL_PORT+SEROFF_LSR) & 0x60) != 0x60) + while ((inb(CONFIG_DEBUG_SERIAL_PORT+SEROFF_LSR) & 0x20) != 0x20) if (!timeout--) // Ran out of time. return; @@ -63,7 +63,7 @@ debug_serial_flush(void) if (!CONFIG_DEBUG_SERIAL) return; int timeout = DEBUG_TIMEOUT; - while ((inb(CONFIG_DEBUG_SERIAL_PORT+SEROFF_LSR) & 0x40) != 0x40) + while ((inb(CONFIG_DEBUG_SERIAL_PORT+SEROFF_LSR) & 0x60) != 0x60) if (!timeout--) // Ran out of time. return; |