From: Erik van der Kouwe Date: Fri, 26 Nov 2010 16:45:49 +0000 (-0600) Subject: The serial IIR and FCR registers for the serial ports share an I/O port, reads access... X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=7568344d6a91035a193290621761ad11e4de2d30;p=palacios.git The serial IIR and FCR registers for the serial ports share an I/O port, reads accessing IIR and writes accessing FCR --- diff --git a/palacios/src/devices/serial.c b/palacios/src/devices/serial.c index 0035a7f..7122251 100644 --- a/palacios/src/devices/serial.c +++ b/palacios/src/devices/serial.c @@ -700,12 +700,12 @@ static int read_ctrl_port(struct guest_info * core, uint16_t port, void * dst, break; } - case COM1_FIFO_CTRL_PORT: - case COM2_FIFO_CTRL_PORT: - case COM3_FIFO_CTRL_PORT: - case COM4_FIFO_CTRL_PORT: - PrintDebug("UART:read from FCR"); - *val = com_port->fcr.val; + case COM1_IIR_PORT: + case COM2_IIR_PORT: + case COM3_IIR_PORT: + case COM4_IIR_PORT: + PrintDebug("UART:read from IIR"); + *val = com_port->iir.val; break; case COM1_LINE_CTRL_PORT: