From owner-cvs-src@FreeBSD.ORG Tue Apr 11 14:34:52 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38D6016A403; Tue, 11 Apr 2006 14:34:52 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from sippysoft.com (gk.360sip.com [72.236.70.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 975C643D70; Tue, 11 Apr 2006 14:34:51 +0000 (GMT) (envelope-from sobomax@FreeBSD.org) Received: from [192.168.0.47] ([204.244.149.125]) (authenticated bits=0) by sippysoft.com (8.13.4/8.13.4) with ESMTP id k3BEntbE002919 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Apr 2006 07:49:56 -0700 (PDT) (envelope-from sobomax@FreeBSD.org) Message-ID: <443BBE7F.6060906@FreeBSD.org> Date: Tue, 11 Apr 2006 07:34:39 -0700 From: Maxim Sobolev Organization: Sippy Software, Inc. User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: John Baldwin References: <200604110439.k3B4dTOD072774@repoman.freebsd.org> <200604110818.20705.jhb@freebsd.org> In-Reply-To: <200604110818.20705.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/boot/i386/cdboot cdboot.s X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 14:34:52 -0000 boo1 does the same - timeout loop. My small research seemingly suggests that doing A20 via the BIOS is not very reliable and may not work on all machines. -Maxim John Baldwin wrote: > On Tuesday 11 April 2006 12:39 am, Maxim Sobolev wrote: >> sobomax 2006-04-11 04:39:29 UTC >> >> FreeBSD src repository >> >> Modified files: >> sys/boot/i386/cdboot cdboot.s >> Log: >> When enabling A20 put upper limit on amount of time we wait for the >> keyboard controller to get ready (65K x ISA access time, visually around 1 >> second). If we have wait more than that amount it's likely that the >> hardware is a legacy-free one and simply doesn't have keyboard controller >> and doesn't require enabling A20 at all. >> >> This makes cdboot working for MacBook Pro with Boot Camp. > > You'll probably need to do the same for boot1 and I think BTX. > Alternatively, you should see how the loader is handling A20 and > do that in the various boot programs instead (I think there's a PR > somewhere about using a BIOS call instead of frobbing the keyboard > controller directly that supposedly fixes things like USB keyboards > in the loader.) >