hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/acpi/acpica/hwvalid.c
....@@ -23,8 +23,8 @@
2323 *
2424 * The table is used to implement the Microsoft port access rules that
2525 * first appeared in Windows XP. Some ports are always illegal, and some
26
- * ports are only illegal if the BIOS calls _OSI with a win_XP string or
27
- * later (meaning that the BIOS itelf is post-XP.)
26
+ * ports are only illegal if the BIOS calls _OSI with nothing newer than
27
+ * the specific _OSI strings.
2828 *
2929 * This provides ACPICA with the desired port protections and
3030 * Microsoft compatibility.
....@@ -145,7 +145,8 @@
145145
146146 /* Port illegality may depend on the _OSI calls made by the BIOS */
147147
148
- if (acpi_gbl_osi_data >= port_info->osi_dependency) {
148
+ if (port_info->osi_dependency == ACPI_ALWAYS_ILLEGAL ||
149
+ acpi_gbl_osi_data == port_info->osi_dependency) {
149150 ACPI_DEBUG_PRINT((ACPI_DB_VALUES,
150151 "Denied AML access to port 0x%8.8X%8.8X/%X (%s 0x%.4X-0x%.4X)\n",
151152 ACPI_FORMAT_UINT64(address),