From owner-cvs-all@FreeBSD.ORG Thu Mar 13 20:38:28 2008 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7DAD1065675; Thu, 13 Mar 2008 20:38:28 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id D6FA88FC21; Thu, 13 Mar 2008 20:38:27 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8s) with ESMTP id 235381336-1834499 for multiple; Thu, 13 Mar 2008 16:36:34 -0400 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m2DKcIx4031640; Thu, 13 Mar 2008 16:38:24 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Rink Springer Date: Thu, 13 Mar 2008 15:56:24 -0400 User-Agent: KMail/1.9.7 References: <200803131856.m2DIurjS096021@repoman.freebsd.org> <20080313195116.GJ77132@rink.nu> In-Reply-To: <20080313195116.GJ77132@rink.nu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803131556.24388.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Thu, 13 Mar 2008 16:38:24 -0400 (EDT) X-Virus-Scanned: ClamAV 0.91.2/6225/Thu Mar 13 10:52:37 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/i386/i386 machdep.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Mar 2008 20:38:28 -0000 On Thursday 13 March 2008 03:51:16 pm Rink Springer wrote: > On Thu, Mar 13, 2008 at 06:56:53PM +0000, John Baldwin wrote: > > jhb 2008-03-13 18:56:53 UTC > > > > FreeBSD src repository > > > > Modified files: > > sys/i386/i386 machdep.c > > Log: > > Use the SMAP data from the loader if it is provided instead of using > > virtual 86 mode to query the BIOS directly. This is needed for certain > > HP machines whose BIOS only provide an SMAP when invoked from real mode. > > On such machines the loader will be able to query the SMAP successfully > > due to the recent BTX changes, but the kernel will not. > > Thanks! I was thinking about doing this myself - seems you beat me to > it. > > > One thing I'm not sure of is if we can skip the INT 12h probe altogether > > if we have the SMAP from the loader as it seems that we do the INT 12h > > probe to setup enough state so we can use vm86 to call the BIOS. > > Hmm, can't we just have loader(8) pass this information as well? It > seems it already does in the bootinfo structure... I think people still want to be able to boot kernels from boot2/gptboot rather than loader in which case we'd always have to have the vm86 calls that are there now. -- John Baldwin