[UPDATE] New Boot-Loader Menu -- version 1.1

John Baldwin jhb at freebsd.org
Tue May 3 11:45:57 UTC 2011


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


More information about the freebsd-hackers mailing list