Ticket #5341: esc.patch

File esc.patch, 643 bytes (added by Grey, 14 years ago)

Replying to jackburton: Try this patch, plese. ESC searched only at last and prev to last keys codes.

  • src/system/boot/platform/bios_ia32/bios.S

     
    266266    cmp $0x440, %si
    267267    jnz search_cycle1
    268268
    269     movw    $0x41E, %si // BIOS kbd buffer
    270 search_cycle2:
     269    movw    $0x400, %si // BIOS kbd buffer
     270    addw    0x41C, %si  // BIOS kbd buffer pointer
     271    subw    $0x2,%si
    271272    lodsw
    272273    cmp $0x011B, %ax    // test ESC key
    273274    jz  to_ret
    274     cmp $0x440, %si
    275     jnz search_cycle2
     275    subw    $0x4,%si
     276    lodsw
     277    cmp $0x011B, %ax    // test ESC key
     278//  jz  to_ret
    276279to_ret:
    277280    pop %ds
    278281