]> xenbits.xensource.com Git - seabios.git/commitdiff
Set ZF prior to keyboard read call in check_for_keystroke().
authorKevin O'Connor <kevin@koconnor.net>
Sun, 17 Mar 2013 14:32:05 +0000 (10:32 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 17 Mar 2013 14:32:05 +0000 (10:32 -0400)
Set the ZF flag to make sure the keyboard interrupt is actively
clearing it on a key event.  This fixes a hang when CONFIG_BOOTMENU is
on and CONFIG_KEYBOARD is off.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/util.c

index dcc0b71b83eae3a8e369b01f12410ebaf9a0c3a2..ccf84b0075c76e9d0a3b011642e5267ae80f9467 100644 (file)
@@ -260,7 +260,7 @@ check_for_keystroke(void)
 {
     struct bregs br;
     memset(&br, 0, sizeof(br));
-    br.flags = F_IF;
+    br.flags = F_IF|F_ZF;
     br.ah = 1;
     call16_int(0x16, &br);
     return !(br.flags & F_ZF);