From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 11:45:57 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DB25106564A for ; Tue, 3 May 2011 11:45:57 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id F2DB28FC18 for ; Tue, 3 May 2011 11:45:56 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id F2EB146B0D; Tue, 3 May 2011 07:45:55 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 8C82C8A027; Tue, 3 May 2011 07:45:55 -0400 (EDT) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Tue, 3 May 2011 07:45:04 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <9B387DE4-6866-4208-A8FC-6516D651F6A5@vicor.com> <013201cc092b$d3c7c470$7b574d50$@vicor.com> In-Reply-To: <013201cc092b$d3c7c470$7b574d50$@vicor.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105030745.04486.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Tue, 03 May 2011 07:45:55 -0400 (EDT) Cc: Olivier SMEDTS , Devin Teske Subject: Re: [UPDATE] New Boot-Loader Menu -- version 1.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2011 11:45:57 -0000 On Monday, May 02, 2011 8:48:31 pm Devin Teske wrote: > This version (1.1) works nearly identically to the standard menu that ships with > FreeBSD in that it detects whether ACPI is enabled (truth be told, I actually > re-used the "acpienabled?" function verbatim from /boot/beastie.4th by Scott > Long and Aleksander Fafula). The ACPI detection of my boot loader (version 1.1 > or higher) should be identical to the detection of the current boot-loader. > > I would be willing to bet that your workstation -- while running the default > boot loader -- displays "Boot FreeBSD with ACPI enabled" for option #2 > (indicating that ACPI appears to be disabled from your system's perspective). > > As far as I know, the loader does not know that ACPI is compiled into your > kernel. Rather the ACPI menuitem (both in the default boot-loader menu and in my > version 1.1) hinges on whether "acpi_load" is defined (and is enabled). > > On a side-note, the same exact code is displaying ACPI as enabled for me > (running under Parallels 4 on Mac OS X 10.6.7) at boot time. Yet, I do not have > acpi_load in loader.conf(5), though I do have a kernel with ACPI built-in. My > guess is that loader(8) is setting load_acpi="YES", which I verify immediately > after executing loader(8) and the loader.4th start-word (which reads > loader.conf(5) among other things). Err, note that the acpienabled stuff is all different in HEAD than in 7/8 since acpi.ko no longer exists. You should use the scheme from HEAD for handling ACPI present vs ACPI enabled/disabled. -- John Baldwin