mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
PS2MouseDevice: Try to synchronize the data reporting stream.
Turns out this was the reason QEMU wouldn't boot us.
This commit is contained in:
parent
b5c76d7559
commit
dc20f00872
1 changed files with 4 additions and 1 deletions
|
@ -28,7 +28,10 @@ void PS2MouseDevice::handle_irq()
|
|||
m_data[m_data_state] = data;
|
||||
switch (m_data_state) {
|
||||
case 0:
|
||||
ASSERT(data & 0x08);
|
||||
if (!(data & 0x08)) {
|
||||
dbgprintf("PS2Mouse: Stream out of sync.\n");
|
||||
break;
|
||||
}
|
||||
++m_data_state;
|
||||
break;
|
||||
case 1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue