]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ACPICA: Disassembler: Enhance resource descriptor detection
authorBob Moore <robert.moore@intel.com>
Wed, 26 Apr 2017 08:17:43 +0000 (16:17 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 26 Apr 2017 22:30:58 +0000 (00:30 +0200)
commitda28e1955d7fc228870f437693cfae8ce486ad9f
treef40b3ef5f511eeb696729e37202e5ae7f293ab87
parentf202f65dd4d1dba1d3fb9c48c6a5b0725367881d
ACPICA: Disassembler: Enhance resource descriptor detection

ACPICA commit ba5020b2dbe1538e4ccd7ac2dfd8843a690c007f

This change enhances the detection of resource descriptors
within a buffer object. For the end_tag opcode, the second byte
is defined to be either a checksum or zero. All known ASL compilers
insert a zero for this byte. The disassembler now ensures this
byte is zero before deciding that a buffer should be disassembled
to a resource descriptor. This helps eliminate incorrect decisions
when attempting to disassemble a buffer to a resource descriptor.

Link: https://github.com/acpica/acpica/commit/ba5020b2
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/utresrc.c