Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 May 2011 07:45:04 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        Olivier SMEDTS <olivier@gid0.org>, Devin Teske <dteske@vicor.com>
Subject:   Re: [UPDATE] New Boot-Loader Menu -- version 1.1
Message-ID:  <201105030745.04486.jhb@freebsd.org>
In-Reply-To: <013201cc092b$d3c7c470$7b574d50$@vicor.com>
References:  <9B387DE4-6866-4208-A8FC-6516D651F6A5@vicor.com> <BANLkTinr42HAK4QoVKce8gp7oPQpQstBBQ@mail.gmail.com> <013201cc092b$d3c7c470$7b574d50$@vicor.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105030745.04486.jhb>