1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

Restore autoloading of ACPI module.

Document the approved ways of disabling it.
Submitted by:	Daniel O'Connor <doconnor@gsoft.com.au>
This commit is contained in:
David E. O'Brien 2002-08-09 06:07:33 +00:00
parent 82d9ad331a
commit ac03993585
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101558
3 changed files with 17 additions and 0 deletions

View File

@ -142,6 +142,11 @@ hint.sio.0.port="0x3F8"
hint.sio.0.flags="0x10"
hint.sio.0.irq="4"
.Ed
The following example disables the ACPI driver
.Bd -literal -offset indent
hint.acpi.0.disable="1"
.Ed
.\" .Pp
.\" A control variable may look like:
.\" .Pp

View File

@ -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

View File

@ -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);
}