summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/i386')
-rw-r--r--sys/boot/i386/libi386/i386_module.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/boot/i386/libi386/i386_module.c b/sys/boot/i386/libi386/i386_module.c
index a51a488..5c29aee 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);
}
OpenPOWER on IntegriCloud