Ticket #5341: esc2.patch
File esc2.patch, 852 bytes (added by , 14 years ago) |
---|
-
src/system/boot/platform/bios_ia32/bios.S
237 237 238 238 /** uint32 search_keyboard_buffer() 239 239 * Search in keyboard buffer keycodes for F8, F12 or Space 240 * if not found - search ESC keycode .240 * if not found - search ESC keycode at the end of this buffer (2 positions) 241 241 */ 242 242 243 243 FUNCTION(search_keyboard_buffer) … … 266 266 cmp $0x440, %si 267 267 jnz search_cycle1 268 268 269 movw $0x41E, %si // BIOS kbd buffer 270 search_cycle2: 271 lodsw 269 addw 0x41C, %si 270 movw -0x42(%si), %ax 272 271 cmp $0x011B, %ax // test ESC key 273 272 jz to_ret 274 cmp $0x440, %si275 jnz search_cycle2273 movw -0x44(%si), %ax 274 cmp $0x011B, %ax // test ESC key 276 275 to_ret: 277 276 pop %ds 278 277