Subject: Re: port-i386/17865: i386 boot-blocks hate function keys
From: David Laight <email@example.com>
Date: 08/07/2002 18:46:29
> 1) Abort as in 'stop counting and boot now',
> not abort as in 'stop counting and give me a prompt',
> 2) as opposed to 'continue counting but ignore the keyboard'.
Ok it does (2) first due to a bug in coniskey, then (1) due
to the previously mentioned but in awaitkey.
Fix to (2) is:
dsl@snowdrop:-ksh$ cvs diff conio.S
RCS file: /cvsroot/syssrc/sys/arch/i386/stand/lib/conio.S,v
retrieving revision 18.104.22.168
diff -u -r22.214.171.124 conio.S
--- conio.S 1997/03/14 02:40:32 126.96.36.199
+++ conio.S 2002/08/07 17:38:09
@@ -85,8 +85,9 @@
+ movb $0,%bl
- movb %al,%bl
+ incb %bl
The int16(ah=1) call returns status in the 'z' flag,
the contents of al are either undefined or are the value of
the key. Who knows what was in bl (when al wasn't copied there)
- possible the 0 setup before the int16 call...
Anywhat the explicit checks above are fine.
David Laight: firstname.lastname@example.org