mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +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
Notes:
sideshowbarker
2024-07-19 16:01:05 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/dc20f00872b
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
Reference in a new issue