Kernel: Don't wait for ps2 timeout when flushing buffer

This speeds up boot time by a second :dd:
This commit is contained in:
Bananymous 2025-08-26 23:41:44 +03:00
parent cea19ecc31
commit aaa8760d09
1 changed files with 2 additions and 2 deletions

View File

@ -468,8 +468,8 @@ namespace Kernel::Input
TRY(send_command(PS2::Command::DISABLE_SECOND_PORT));
// Flush The Output Buffer
while (!read_byte().is_error())
continue;
while (IO::inb(m_command_port) & PS2::Status::OUTPUT_STATUS)
IO::inb(m_data_port);
// Set the Controller Configuration Byte
TRY(send_command(PS2::Command::READ_CONFIG));