Revert "Kernel: Keep reading from i8042 until the buffer is empty"

This reverts commit 467f6c74a4.
This commit is contained in:
Tom 2020-11-14 13:45:34 -07:00 committed by Andreas Kling
commit 13383f3267
Notes: sideshowbarker 2024-07-19 02:27:51 +09:00

View file

@ -149,7 +149,6 @@ void I8042Controller::irq_process_input_buffer(Device)
{ {
ASSERT(Processor::current().in_irq()); ASSERT(Processor::current().in_irq());
for (;;) {
u8 status = IO::in8(I8042_STATUS); u8 status = IO::in8(I8042_STATUS);
if (!(status & I8042_BUFFER_FULL)) if (!(status & I8042_BUFFER_FULL))
return; return;
@ -158,7 +157,6 @@ void I8042Controller::irq_process_input_buffer(Device)
if (auto* device = m_devices[data_for_device == Device::Keyboard ? 0 : 1].device) if (auto* device = m_devices[data_for_device == Device::Keyboard ? 0 : 1].device)
device->irq_handle_byte_read(byte); device->irq_handle_byte_read(byte);
} }
}
void I8042Controller::do_drain() void I8042Controller::do_drain()
{ {