Skip to content

Commit

Permalink
Fix i8042 timing for Tyrian 2000 setup
Browse files Browse the repository at this point in the history
  • Loading branch information
FeralChild64 committed Jun 18, 2024
1 parent 182951e commit 2e5ddb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hardware/input/intel8042.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,10 @@ static uint8_t read_data_port(io_port_t, io_width_t) // port 0x60
is_data_from_aux = false;
is_data_from_kbd = false;

maybe_transfer_buffer();
// Enforce the simulated data transfer delay, as some software
// (Tyrian 200 setup) reads the port without waiting for the
// interrupt.
restart_delay_timer(PortDelayMs);

return ret_val;
}
Expand Down

0 comments on commit 2e5ddb6

Please sign in to comment.