Bug #141 » 0005-at-keyboard-timeout.patch
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
|
- « Previous
- 1
- 2
- Next »