acpi: generate and parse mixed asl/aml listing
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 4 Oct 2011 13:26:01 +0000 (15:26 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 13 Oct 2011 01:12:52 +0000 (21:12 -0400)
commit2597b757c3566e9e418d48a4872326f2383ba05f
tree35a9c62b9cbe1a84937d1ed0d4b853c40470cc23
parenta65f417c8430ce6781cbbfe84381a97d60628d81
acpi: generate and parse mixed asl/aml listing

Use iasl -l flag to produce a mixed listing, where a
source line is followed by matching AML.

Add a tool tools/acpi_extract.py to process this
listing. The tool looks for ACPI_EXTRACT tags
in the ASL source and outputs matching AML offsets
in an array.

To make these directives pass through ASL without affecting AML,
and to make it possible to match AML to source exactly,
add a preprocessing stage, which prepares input for iasl,
and puts each ACPI_EXTRACT tag within a comment,
on a line by itself.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Makefile
src/acpi-dsdt.hex
tools/acpi_extract.py [new file with mode: 0755]
tools/acpi_extract_preprocess.py [new file with mode: 0755]