From owner-cvs-src@FreeBSD.ORG Tue Apr 11 12:18:23 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 5084916A400; Tue, 11 Apr 2006 12:18:23 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6AA943D46; Tue, 11 Apr 2006 12:18:22 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k3BCIL5U016193; Tue, 11 Apr 2006 08:18:21 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Maxim Sobolev Date: Tue, 11 Apr 2006 08:18:19 -0400 User-Agent: KMail/1.8.3 References: <200604110439.k3B4dTOD072774@repoman.freebsd.org> In-Reply-To: <200604110439.k3B4dTOD072774@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200604110818.20705.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1391/Tue Apr 11 05:53:41 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx 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 12:18:23 -0000 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.) =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org