Patch by Grey which fixes "auto-enabling" of the boot loader screen debug
which happened on some systems (mine included). Should close ticket #5341. Thanks! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35441 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -237,7 +237,7 @@ int_number:
|
|||||||
|
|
||||||
/** uint32 search_keyboard_buffer()
|
/** uint32 search_keyboard_buffer()
|
||||||
* Search in keyboard buffer keycodes for F8, F12 or Space
|
* Search in keyboard buffer keycodes for F8, F12 or Space
|
||||||
* if not found - search ESC keycode.
|
* if not found - search ESC keycode at the end of this buffer (2 positions)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
FUNCTION(search_keyboard_buffer)
|
FUNCTION(search_keyboard_buffer)
|
||||||
@@ -266,13 +266,12 @@ search_cycle1:
|
|||||||
cmp $0x440, %si
|
cmp $0x440, %si
|
||||||
jnz search_cycle1
|
jnz search_cycle1
|
||||||
|
|
||||||
movw $0x41E, %si // BIOS kbd buffer
|
addw 0x41C, %si
|
||||||
search_cycle2:
|
movw -0x42(%si), %ax
|
||||||
lodsw
|
|
||||||
cmp $0x011B, %ax // test ESC key
|
cmp $0x011B, %ax // test ESC key
|
||||||
jz to_ret
|
jz to_ret
|
||||||
cmp $0x440, %si
|
movw -0x44(%si), %ax
|
||||||
jnz search_cycle2
|
cmp $0x011B, %ax // test ESC key
|
||||||
to_ret:
|
to_ret:
|
||||||
pop %ds
|
pop %ds
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user