ACPI: Add hack to avoid IASL warning when reading back registers
commitd890b45520a4b2af2ae2b15096b5897ed7464fcb
authorMartin Roth <martinroth@google.com>
Thu, 10 Dec 2015 15:04:44 +0000 (10 08:04 -0700)
committerMartin Roth <martinroth@google.com>
Sat, 26 Dec 2015 19:53:49 +0000 (26 20:53 +0100)
treebf142bbca711b64adda6c421828f8ce16728c041
parent80ef7b778e5e5ec8b2940c875df76bb705855ede
ACPI: Add hack to avoid IASL warning when reading back registers

Upcoming versions of IASL give a warning about unused methods.  This
adds an operation after the read to use the local variable and avoid
the warning.

The warning can be completely disabled on the command line, but as it
can find real issues, my preference is to not do that.

Fixes warnings:
dsdt.aml 640:             Store (CTMP, Local0)
Warning  3144 - Method Local is set but never used ^  (Local0)

Change-Id: If55bb8e03abb8861e1f2f08a8bcb1be8c9783afe
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/12704
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
src/ec/quanta/ene_kb3940q/acpi/ec.asl
src/soc/intel/broadwell/acpi/serialio.asl
src/southbridge/intel/lynxpoint/acpi/serialio.asl