From owner-cvs-all@FreeBSD.ORG Thu Mar 13 20:16: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 AC95F1065684; Thu, 13 Mar 2008 20:16:28 +0000 (UTC) (envelope-from rink@tragedy.rink.nu) Received: from mx1.rink.nu (alastor.rink.nu [213.34.49.5]) by mx1.freebsd.org (Postfix) with ESMTP id 5FF0B8FC39; Thu, 13 Mar 2008 20:16:28 +0000 (UTC) (envelope-from rink@tragedy.rink.nu) Received: from localhost (alastor.rink.nu [213.34.49.5]) by mx1.rink.nu (Postfix) with ESMTP id B6F67BFEBDA; Thu, 13 Mar 2008 19:51:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at rink.nu Received: from mx1.rink.nu ([213.34.49.5]) by localhost (alastor.rink.nu [213.34.49.5]) (amavisd-new, port 10024) with ESMTP id IUZF0SpEw7So; Thu, 13 Mar 2008 19:51:17 +0000 (UTC) Received: from tragedy.rink.nu (tragedy.rink.nu [213.34.49.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.rink.nu (Postfix) with ESMTP id BEA3ABFECDD; Thu, 13 Mar 2008 19:51:16 +0000 (UTC) Received: from tragedy.rink.nu (tragedy.rink.nu [213.34.49.3]) by tragedy.rink.nu (8.13.8/8.13.8) with ESMTP id m2DJpGeA089649; Thu, 13 Mar 2008 20:51:16 +0100 (CET) (envelope-from rink@tragedy.rink.nu) Received: (from rink@localhost) by tragedy.rink.nu (8.13.8/8.13.8/Submit) id m2DJpGHE089648; Thu, 13 Mar 2008 20:51:16 +0100 (CET) (envelope-from rink) Date: Thu, 13 Mar 2008 20:51:16 +0100 From: Rink Springer To: John Baldwin Message-ID: <20080313195116.GJ77132@rink.nu> References: <200803131856.m2DIurjS096021@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200803131856.m2DIurjS096021@repoman.freebsd.org> User-Agent: Mutt/1.5.17 (2007-11-01) 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:16:28 -0000 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... -- Rink P.W. Springer - http://rink.nu "Anyway boys, this is America. Just because you get more votes doesn't mean you win." - Fox Mulder