Fixed a PIT bug (reported by qeggers).
This commit is contained in:
@@ -647,7 +647,7 @@ pit_read(uint16_t addr, void *priv)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 3: case 0x83:
|
case 3: case 0x83:
|
||||||
if (ctr->wm & 0x80)
|
if (ctr->rm & 0x80)
|
||||||
ret = ~(ctr->l & 0xff);
|
ret = ~(ctr->l & 0xff);
|
||||||
else
|
else
|
||||||
ret = count >> ((ctr->rm & 0x80) ? 8 : 0);
|
ret = count >> ((ctr->rm & 0x80) ? 8 : 0);
|
||||||
|
Reference in New Issue
Block a user