pc_serial: toggle THRE in IER to make VirtualBox happy

Not sure it's needed on real hardware yet.
This commit is contained in:
François Revol
2014-08-29 15:21:42 +02:00
parent e9bbba8b84
commit 6e7189d9b2
@@ -338,6 +338,8 @@ SerialDevice::Service(struct tty *tty, uint32 op, void *buffer, size_t length)
TRACE("TTYOSTART\n");
// enable irqs
fCachedIER |= IER_THRE;
// XXX: toggle the bit to make VirtualBox happy !?
WriteReg8(IER, fCachedIER & ~IER_THRE);
WriteReg8(IER, fCachedIER);
return true;
case TTYOSYNC: