|
@@ -222,6 +222,12 @@ acpi_status acpi_hw_read_port(acpi_io_address address, u32 *value, u32 width)
|
|
|
u32 one_byte;
|
|
|
u32 i;
|
|
|
|
|
|
+ /* Truncate address to 16 bits if requested */
|
|
|
+
|
|
|
+ if (acpi_gbl_truncate_io_addresses) {
|
|
|
+ address &= ACPI_UINT16_MAX;
|
|
|
+ }
|
|
|
+
|
|
|
/* Validate the entire request and perform the I/O */
|
|
|
|
|
|
status = acpi_hw_validate_io_request(address, width);
|
|
@@ -279,6 +285,12 @@ acpi_status acpi_hw_write_port(acpi_io_address address, u32 value, u32 width)
|
|
|
acpi_status status;
|
|
|
u32 i;
|
|
|
|
|
|
+ /* Truncate address to 16 bits if requested */
|
|
|
+
|
|
|
+ if (acpi_gbl_truncate_io_addresses) {
|
|
|
+ address &= ACPI_UINT16_MAX;
|
|
|
+ }
|
|
|
+
|
|
|
/* Validate the entire request and perform the I/O */
|
|
|
|
|
|
status = acpi_hw_validate_io_request(address, width);
|