If acpica driver is loaded using kldload(8), warn and just ignore.

This commit is contained in:
Takanori Watanabe 2000-10-31 11:54:10 +00:00
parent 1d266bf638
commit 840f9b5317
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68067
2 changed files with 10 additions and 0 deletions

View File

@ -162,6 +162,11 @@ acpi_identify(driver_t *driver, device_t parent)
char *debugpoint = getenv("debug.acpi.debugger");
#endif
if(!cold){
printf("Don't load this driver from userland!!\n");
return ;
}
/*
* Make sure we're not being doubly invoked.
*/

View File

@ -136,6 +136,11 @@ acpi_isa_identify(driver_t *driver, device_t bus)
ACPI_HANDLE parent;
ACPI_STATUS status;
/*If this driver is loaded from userland ,just ignore*/
if(!cold){
return;
}
/*
* Look for the _SB_ scope, which will contain all the devices
* we are likely to support.