ia64/xen-unstable

changeset 17718:ef7525e87030

rombios: Remove annoying 3-second boot delay waiting for user to hit
F10 to select boot device. This will be rarely used, and it is
possible to hit F10 before the message is displayed and the keypress
will still register. So in practice it is quite possibel to use this
boot feature reliably without needing a multi-second delay.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri May 23 11:58:08 2008 +0100 (2008-05-23)
parents 21422854b9f8
children 30bf34f5a414
files tools/firmware/rombios/rombios.c
line diff
     1.1 --- a/tools/firmware/rombios/rombios.c	Fri May 23 11:46:36 2008 +0100
     1.2 +++ b/tools/firmware/rombios/rombios.c	Fri May 23 11:58:08 2008 +0100
     1.3 @@ -2225,26 +2225,12 @@ void interactive_bootkey()
     1.4      Bit16u i;
     1.5      Bit8u scan = 0;
     1.6  
     1.7 -    bios_printf(BIOS_PRINTF_SCREEN | BIOS_PRINTF_INFO, "\n\nPress F10 to select boot device.\n");
     1.8 -    for (i = 3; i > 0; i--)
     1.9 -    {
    1.10 -        scan = wait(WAIT_HZ, 0);
    1.11 -        switch (scan) {
    1.12 -        case 0x3D:
    1.13 -        case 0x3E:
    1.14 -        case 0x3F:
    1.15 -        case 0x58:
    1.16 -            break;
    1.17 -        case 0x44:
    1.18 -            scan = bootmenu(inb_cmos(0x3d) & 0x0f);
    1.19 -            break;
    1.20 -        default:
    1.21 -            scan = 0;
    1.22 -            break;
    1.23 -        }
    1.24 -        if (scan != 0)
    1.25 -            break;
    1.26 -    }
    1.27 +    bios_printf(BIOS_PRINTF_SCREEN | BIOS_PRINTF_INFO,
    1.28 +                "\n\nPress F10 to select boot device.\n");
    1.29 +
    1.30 +    scan = wait(1, 0);
    1.31 +    if (scan == 0x44)
    1.32 +        scan = bootmenu(inb_cmos(0x3d) & 0x0f);
    1.33  
    1.34      /* set the default based on the keypress or menu */
    1.35      switch(scan) {