From d53e46f0a971ca66a292499b6aa1b4746eafc506 Mon Sep 17 00:00:00 2001 From: okuji Date: Sat, 29 Jun 2002 20:35:27 +0000 Subject: [PATCH] 2002-06-30 Yoshinori K. Okuji * stage2/serial.c [!GRUB_UTIL] (serial_hw_fetch): Fixed the conditional statement. Reported by Ilguiz Latypov. --- ChangeLog | 5 +++++ THANKS | 1 + stage2/serial.c | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0d40bb6fd..4ea99e95b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-06-30 Yoshinori K. Okuji + + * stage2/serial.c [!GRUB_UTIL] (serial_hw_fetch): Fixed the + conditional statement. Reported by Ilguiz Latypov. + 2002-06-24 Yoshinori K. Okuji * MAINTENANCE: New file. diff --git a/THANKS b/THANKS index ec17d8c6c..a63436575 100644 --- a/THANKS +++ b/THANKS @@ -43,6 +43,7 @@ Henrik Nordstrom Herbert Nachtnebel Hisazumi Kenji HORIKAWA Kazunori +Ilguiz Latypov Jan Fricke Jan Zerebecki Jason Thomas diff --git a/stage2/serial.c b/stage2/serial.c index 925bfa8fd..706ff1068 100644 --- a/stage2/serial.c +++ b/stage2/serial.c @@ -80,7 +80,7 @@ outb (unsigned short port, unsigned char value) int serial_hw_fetch (void) { - if (inb ((serial_hw_port + UART_LSR) & UART_DATA_READY) == 0) + if (inb ((serial_hw_port + UART_LSR) & UART_DATA_READY)) return inb (serial_hw_port + UART_RX); return -1;