aboutsummaryrefslogtreecommitdiff
path: root/sys/boot
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2002-08-09 06:07:33 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2002-08-09 06:07:33 +0000
commitac0399358527a83bef0c88e337cc51957673a894 (patch)
tree48bfd2ae4acf163f980466bca782deb3ce35239c /sys/boot
parent82d9ad331ac0a07c584b40ac3fb32498467dd9a5 (diff)
Notes
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/common/loader.84
-rw-r--r--sys/boot/i386/libi386/i386_module.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/sys/boot/common/loader.8 b/sys/boot/common/loader.8
index 42131a6bf99f2..ecdc688dfb5ee 100644
--- a/sys/boot/common/loader.8
+++ b/sys/boot/common/loader.8
@@ -310,6 +310,10 @@ While some of these may require a value,
others define behavior just by being set.
These are described below.
.Bl -tag -width bootfile
+.It Va acpi_load
+Unset this to disable automatic loading of the ACPI module.
+See also hint.acpi.0.disable in
+.Xr device.hints 5 .
.It Va autoboot_delay
Number of seconds
.Ic autoboot
diff --git a/sys/boot/i386/libi386/i386_module.c b/sys/boot/i386/libi386/i386_module.c
index a51a4885c9282..5c29aee00d344 100644
--- a/sys/boot/i386/libi386/i386_module.c
+++ b/sys/boot/i386/libi386/i386_module.c
@@ -47,5 +47,13 @@ i386_autoload(void)
/* XXX use PnP to locate stuff here */
+ /* autoload ACPI support */
+ /* XXX should be in 4th keyed off acpi_load */
+ if ((getenv("acpi_load") && !getenv("hint.acpi.0.disable"))) {
+ error = mod_load("acpi", NULL, 0, NULL);
+ if (error != 0)
+ printf("ACPI autoload failed - %s\n", strerror(error));
+ }
+
return(0);
}