Ticket #2654: keyboard.cpp.diff

File keyboard.cpp.diff, 516 bytes (added by jonas.kirilla, 13 years ago)
  • src/system/boot/platform/bios_ia32/keyboard.cpp

     
    4343extern "C" union key
    4444wait_for_key(void)
    4545{
    46     bios_regs regs;
    47     regs.eax = 0;
    48     call_bios(0x16, &regs);
    49 
    5046    union key key;
    51     key.ax = regs.eax & 0xffff;
    5247
     48    do {
     49        key.ax = check_for_key();
     50    } while(key.ax == 0);
     51
    5352    return key;
    5453}
    5554