diff options
Diffstat (limited to 'dev/uart8250.cc')
-rw-r--r-- | dev/uart8250.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/uart8250.cc b/dev/uart8250.cc index ad3232686..013cbfd00 100644 --- a/dev/uart8250.cc +++ b/dev/uart8250.cc @@ -148,9 +148,9 @@ Uart8250::read(MemReqPtr &req, uint8_t *data) DPRINTF(Uart, "IIR Read, status = %#x\n", (uint32_t)status); status &= ~TX_INT; if (status & RX_INT) - *(uint8_t*)data = 0x4; + *(uint8_t*)data = IIR_RXID; else - *(uint8_t*)data = 0x1; + *(uint8_t*)data = IIR_NOPEND; break; case 0x3: // Line Control Register (LCR) *(uint8_t*)data = LCR; |