diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-03-17 10:32:05 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-03-17 10:32:05 -0400 |
commit | 2d6db556cb219ff1a15b98a18fafad33310e47b0 (patch) | |
tree | 6dabbb7786555fcffde863ec9dad3f7f717c178f /src | |
parent | 212fb4da051b74f7d232e16e04cf51d02f3b6472 (diff) | |
download | seabios-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |