Selaa lähdekoodia

[bios] Use INT 16,11 instead of INT 16,01 to check for keystrokes

INT 16,01 will discard some extended keystrokes on some BIOSes, making
it impossible for iPXE to detect keypresses such as F12.  Fix by using
INT 16,11 instead.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14 vuotta sitten
vanhempi
commit
9a5b4aed69
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      src/arch/i386/firmware/pcbios/bios_console.c

+ 1
- 1
src/arch/i386/firmware/pcbios/bios_console.c Näytä tiedosto

286
 					   "popw %w0\n\t"
286
 					   "popw %w0\n\t"
287
 					   "cli\n\t" )
287
 					   "cli\n\t" )
288
 			       : "=r" ( flags ), "=a" ( discard_a )
288
 			       : "=r" ( flags ), "=a" ( discard_a )
289
-			       : "a" ( 0x0100 ) );
289
+			       : "a" ( 0x1100 ) );
290
 	return ( ! ( flags & ZF ) );
290
 	return ( ! ( flags & ZF ) );
291
 }
291
 }
292
 
292
 

Loading…
Peruuta
Tallenna