summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoan Tran <hotran@apm.com>2016-10-11 09:21:31 -0700
committerRobert Moore <Robert.Moore@intel.com>2016-10-11 09:21:31 -0700
commitc991d0853563d12b7f2f29b3ae1746221afbb8cb (patch)
tree77d400cb92d1822143574debcf9a97bb2cc5e561
parenta68b02b47f8a01a8e8c10e4867798547f89060a2 (diff)
downloadacpica-c991d0853563d12b7f2f29b3ae1746221afbb8cb.tar.gz
avoid iasl return Access Size error with PCC register when
its value is over 4. Signed-off-by: Hoan Tran <hotran@apm.com>
-rw-r--r--source/compiler/aslrestype2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/compiler/aslrestype2.c b/source/compiler/aslrestype2.c
index 9fc77b04c..cbec1b332 100644
--- a/source/compiler/aslrestype2.c
+++ b/source/compiler/aslrestype2.c
@@ -199,6 +199,11 @@ RsDoGeneralRegisterDescriptor (
RsCreateByteField (InitializerOp, ACPI_RESTAG_ACCESSSIZE,
CurrentByteOffset + ASL_RESDESC_OFFSET (GenericReg.AccessSize));
+ if (Descriptor->GenericReg.AddressSpaceId == ACPI_ADR_SPACE_PLATFORM_COMM)
+ {
+ break;
+ }
+
if (Descriptor->GenericReg.AccessSize > AML_FIELD_ACCESS_QWORD)
{
AslError (ASL_ERROR, ASL_MSG_INVALID_ACCESS_SIZE,