mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 02:37:06 +00:00
Allow interrupts indicating an empty buffer only if some bytes are pending
This should correct the boot in Qemu svn path=/trunk/; revision=14631
This commit is contained in:
parent
91ec410e2f
commit
1eb9c1db51
|
@ -130,11 +130,13 @@ SerialSendByte(
|
|||
DeviceExtension->ComPort, Byte);
|
||||
DeviceExtension->SerialPerfStats.TransmittedCount++;
|
||||
}
|
||||
if (!IsCircularBufferEmpty(&DeviceExtension->OutputBuffer))
|
||||
{
|
||||
/* allow new interrupts */
|
||||
IER = READ_PORT_UCHAR(SER_IER(ComPortBase));
|
||||
WRITE_PORT_UCHAR(SER_IER(ComPortBase), IER | SR_IER_THR_EMPTY);
|
||||
}
|
||||
KeReleaseSpinLock(&DeviceExtension->OutputBufferLock, Irql);
|
||||
|
||||
/* allow new interrupts */
|
||||
IER = READ_PORT_UCHAR(SER_IER(ComPortBase));
|
||||
WRITE_PORT_UCHAR(SER_IER(ComPortBase), IER | SR_IER_THR_EMPTY);
|
||||
}
|
||||
|
||||
BOOLEAN STDCALL
|
||||
|
|
Loading…
Reference in a new issue