diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2016-11-17 18:06:08 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2016-11-17 18:06:08 +0000 |
commit | a56e3c255d5c5dfa4dd3a2fda4705a1607a6b7f3 (patch) | |
tree | 830d95042126506cd52440fe9710bb4e6811cfde /source/compiler/aslopcodes.c | |
parent | 7600ac2283596bd000a29b9347e95346d3b740d7 (diff) | |
download | src-72643db1de69494b4b5c65a571cda99927ef33b9.tar.gz src-72643db1de69494b4b5c65a571cda99927ef33b9.zip |
Import ACPICA 20161117.vendor/acpica/20161117
Diffstat (limited to 'source/compiler/aslopcodes.c')
-rw-r--r-- | source/compiler/aslopcodes.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/compiler/aslopcodes.c b/source/compiler/aslopcodes.c index de9ffe1baf09..c981f07c4d74 100644 --- a/source/compiler/aslopcodes.c +++ b/source/compiler/aslopcodes.c @@ -289,7 +289,7 @@ OpcSetOptimalIntegerSize ( Op->Asl.AmlOpcode = AML_DWORD_OP; return (4); } - else + else /* 64-bit integer */ { if (AcpiGbl_IntegerByteWidth == 4) { @@ -299,8 +299,12 @@ OpcSetOptimalIntegerSize ( if (!Gbl_IgnoreErrors) { /* Truncate the integer to 32-bit */ - Op->Asl.AmlOpcode = AML_DWORD_OP; - return (4); + + Op->Asl.Value.Integer &= ACPI_UINT32_MAX; + + /* Now set the optimal integer size */ + + return (OpcSetOptimalIntegerSize (Op)); } } |