summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2023-02-07 10:18:13 -0800
committerGitHub <noreply@github.com>2023-02-07 10:18:13 -0800
commitace402016455da98a1e013dd7796f72d24099512 (patch)
treedfa940dd28d96c8a9158c554cc5206e990e9c5be
parent041aaf3e9089893363e609ab070a0f40348a82eb (diff)
parent207cdba92165c6255a44f44cd38f17f6d19a1d3b (diff)
downloadacpica-ace402016455da98a1e013dd7796f72d24099512.tar.gz
Merge pull request #817 from superm1/mlimonci/protected-ranges
ACPICA: hwvalid: Drop port I/O validation
-rw-r--r--source/components/hardware/hwvalid.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/components/hardware/hwvalid.c b/source/components/hardware/hwvalid.c
index e9142e9f4..80f0f5709 100644
--- a/source/components/hardware/hwvalid.c
+++ b/source/components/hardware/hwvalid.c
@@ -169,8 +169,8 @@ AcpiHwValidateIoRequest (
*
* The table is used to implement the Microsoft port access rules that
* first appeared in Windows XP. Some ports are always illegal, and some
- * ports are only illegal if the BIOS calls _OSI with a WinXP string or
- * later (meaning that the BIOS itelf is post-XP.)
+ * ports are only illegal if the BIOS calls _OSI with nothing newer than
+ * the specific _OSI strings.
*
* This provides ACPICA with the desired port protections and
* Microsoft compatibility.
@@ -301,8 +301,8 @@ AcpiHwValidateIoRequest (
if ((Address <= PortInfo->End) && (LastAddress >= PortInfo->Start))
{
/* Port illegality may depend on the _OSI calls made by the BIOS */
-
- if (AcpiGbl_OsiData >= PortInfo->OsiDependency)
+ if (PortInfo->OsiDependency == ACPI_ALWAYS_ILLEGAL ||
+ AcpiGbl_OsiData == PortInfo->OsiDependency)
{
ACPI_DEBUG_PRINT ((ACPI_DB_VALUES,
"Denied AML access to port 0x%8.8X%8.8X/%X (%s 0x%.4X-0x%.4X)\n",