"8042" PS/2 Controller: Difference between revisions

m
Warning about QEMU weird behaviour
[unchecked revision][unchecked revision]
(Did some grammar overhaul)
m (Warning about QEMU weird behaviour)
Line 464:
 
Note: if the PS/2 controller uses bit 5 of the Status Register as a "second PS/2 port output buffer full" flag, you'd still have problems trying to determine which device sent a byte of data you've received without race conditions. For example, there may be data from the second PS/2 device waiting for you when you check the flag, but before you read from IO Port 0x60 data from the first PS/2 device might arrive and you might read data from the first PS/2 device when you think you're reading data from the second PS/2 device. There's also no easy way to know if the PS/2 controller uses bit 5 of the Status Register as a "second PS/2 port output buffer full" flag.
 
'''WARNING:''' If you are using QEMU, for some reason polling dosen't works. Instead try just to do this:
 
<code>
in al, 060h
</code>
 
=== Interrupts ===
170

edits