aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-03-17 10:32:05 -0400
committerKevin O'Connor <kevin@koconnor.net>2013-03-17 10:32:05 -0400
commit2d6db556cb219ff1a15b98a18fafad33310e47b0 (patch)
tree6dabbb7786555fcffde863ec9dad3f7f717c178f /src
parent212fb4da051b74f7d232e16e04cf51d02f3b6472 (diff)
downloadseabios-hppa-2d6db556cb219ff1a15b98a18fafad33310e47b0.zip
seabios-hppa-2d6db556cb219ff1a15b98a18fafad33310e47b0.tar.gz
seabios-hppa-2d6db556cb219ff1a15b98a18fafad33310e47b0.tar.bz2
Set ZF prior to keyboard read call in check_for_keystroke().
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>
Diffstat (limited to 'src')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index dcc0b71..ccf84b0 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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);