Use correct address when clearing COM port buffer
The code was reading from Port->Address to clear the RBR before the field was initialized.
This commit is contained in:
parent
e778a95a01
commit
da3e039a05
@ -277,7 +277,7 @@ HlInitializeComPort(IN OUT PCPPORT Port,
|
||||
HlIoPortOutByte(PtrToUshort(PortAddress + (ULONG)COMPORT_REG_MCR), COMPORT_MCR_NOM);
|
||||
|
||||
/* Read junk data out of the Receive Buffer Register (RBR) */
|
||||
HlIoPortInByte(PtrToUshort(Port->Address + (ULONG)COMPORT_REG_RBR));
|
||||
HlIoPortInByte(PtrToUshort(PortAddress + (ULONG)COMPORT_REG_RBR));
|
||||
|
||||
/* Store port details */
|
||||
Port->Address = PortAddress;
|
||||
|
Loading…
x
Reference in New Issue
Block a user