UART: Make the 8250's MCR return a deterministic value.
authorGabe Black <gblack@eecs.umich.edu>
Sat, 9 Oct 2010 19:41:31 +0000 (12:41 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Sat, 9 Oct 2010 19:41:31 +0000 (12:41 -0700)
This change makes the 8250 device return the value it has for the MCR when
read instead of leaving the packet data unmodified/uninitialized. The value
the UART has for the MCR may not be right, but that's a seperate issue that
apparently hasn't caused any problems to date.

src/dev/uart8250.cc

index 2bbcf2683bb8093e0a0c5457110ed4a3e33a9dbc..f8bd233117448cbd239761c9df15540d502ceb8d 100644 (file)
@@ -161,6 +161,7 @@ Uart8250::read(PacketPtr pkt)
             pkt->set(LCR);
             break;
         case 0x4: // Modem Control Register (MCR)
+            pkt->set(MCR);
             break;
         case 0x5: // Line Status Register (LSR)
             uint8_t lsr;