Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Oct 1998 22:01:39 +0200
From:      Stefan Eggers <seggers@semyam.dinoco.de>
To:        Mike Smith <mike@smith.net.au>
Cc:        freebsd-current@FreeBSD.ORG, seggers@semyam.dinoco.de
Subject:   Boot loader's autoload bug fix (was: Re: Two /boot/loader anomalies )
Message-ID:  <199810062001.WAA00640@semyam.dinoco.de>
In-Reply-To: Your message of "Tue, 06 Oct 1998 11:45:43 PDT." <199810061845.LAA00454@dingo.cdrom.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> You'll get this if the timer isn't working properly.  I've seen a 

The timer works perfectly!  While looking for timer anomalies I
figured out what really happens: It's our vidconsole.c's iskey which
gets its return code reversed.

The result is that the boot code's autoboot function asks the BIOS for
a keypress. There is none, yet despite iskey's claim to the contra-
ry. *boom* It hangs until the user presses a key and can't update the
time count.  And of course it never can time out for the same reason.

This will make it work:

Index: i386/libi386/vidconsole.c
===================================================================
RCS file: /usr2/FreeBSD/CVSROOT/src/sys/boot/i386/libi386/vidconsole.c,v
retrieving revision 1.3
diff -u -r1.3 vidconsole.c
--- vidconsole.c	1998/10/02 16:32:45	1.3
+++ vidconsole.c	1998/10/06 19:52:05
@@ -110,7 +110,7 @@
     v86.addr = 0x16;
     v86.eax = 0x100;
     v86int();
-    return(v86.eax);
+    return(! v86.eax);
 }
 
 #if KEYBOARD_PROBE

Stefan.
-- 
Stefan Eggers                 Lu4 yao2 zhi1 ma3 li4,
Max-Slevogt-Str. 1            ri4 jiu3 jian4 ren2 xin1.
51109 Koeln
Federal Republic of Germany

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810062001.WAA00640>