1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00

Add TUNABLE_STR to make "hw.acpi.os_name" more correct. However, the call

to getenv_string() still doesn't work.
This commit is contained in:
Nate Lawson 2004-01-27 06:07:09 +00:00
parent ba4594dccd
commit e0ccb58ad9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125067

View File

@ -39,6 +39,7 @@
#define _COMPONENT ACPI_TABLES
static char acpi_os_name[128];
TUNABLE_STR("hw.acpi.os_name", acpi_os_name, sizeof(acpi_os_name));
ACPI_STATUS
AcpiOsPredefinedOverride (
@ -49,9 +50,7 @@ AcpiOsPredefinedOverride (
return (AE_BAD_PARAMETER);
*NewVal = NULL;
/* Allow both _OS and _OS_ to be overridden. */
if (strncmp(InitVal->Name, "_OS", 3) == 0 &&
if (strncmp(InitVal->Name, "_OS_", 4) == 0 &&
getenv_string("hw.acpi.os_name", acpi_os_name, sizeof(acpi_os_name))) {
printf("ACPI: Overriding _OS definition with \"%s\"\n", acpi_os_name);