1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-02 17:08:56 +00:00

acpi_cpu: correct capabilities arguments for Processor _OSC evaluation

Populate capabilities buffer according to
Intel Processor Vendor-Specific ACPI Interface Specification.

MFC after:	2 weeks
This commit is contained in:
Andriy Gapon 2010-02-03 14:35:33 +00:00
parent 586df59eed
commit 877a6d9994
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=203430

View File

@ -378,7 +378,8 @@ acpi_cpu_attach(device_t dev)
arg[3].Type = ACPI_TYPE_BUFFER;
arg[3].Buffer.Length = sizeof(cap_set); /* Capabilities buffer */
arg[3].Buffer.Pointer = (uint8_t *)cap_set;
cap_set[0] = 0;
cap_set[0] = 0; /* status */
cap_set[1] = sc->cpu_features;
AcpiEvaluateObject(sc->cpu_handle, "_OSC", &arglist, NULL);
}