pc_serial: toggle THRE in IER to make VirtualBox happy
Not sure it's needed on real hardware yet.
This commit is contained in:
@@ -338,6 +338,8 @@ SerialDevice::Service(struct tty *tty, uint32 op, void *buffer, size_t length)
|
|||||||
TRACE("TTYOSTART\n");
|
TRACE("TTYOSTART\n");
|
||||||
// enable irqs
|
// enable irqs
|
||||||
fCachedIER |= IER_THRE;
|
fCachedIER |= IER_THRE;
|
||||||
|
// XXX: toggle the bit to make VirtualBox happy !?
|
||||||
|
WriteReg8(IER, fCachedIER & ~IER_THRE);
|
||||||
WriteReg8(IER, fCachedIER);
|
WriteReg8(IER, fCachedIER);
|
||||||
return true;
|
return true;
|
||||||
case TTYOSYNC:
|
case TTYOSYNC:
|
||||||
|
|||||||
Reference in New Issue
Block a user