Project

General

Profile

Bug #141 » 0005-at-keyboard-timeout.patch

Riku Viitanen, 04/22/2023 12:09 PM

View differences:

grub-core/term/at_keyboard.c
{
/* 50 us would be enough but our current time resolution is 1ms. */
grub_millisleep (1);
while (! KEYBOARD_COMMAND_ISREADY (grub_inb (KEYBOARD_REG_STATUS)));
unsigned i = 200;
while (! KEYBOARD_COMMAND_ISREADY (grub_inb (KEYBOARD_REG_STATUS))) {
grub_millisleep (1);
/* Timeout */
if (! i--) {
break;
}
}
}
static grub_uint8_t
(2-2/2)