acpi: add build_append_named_dword, returning an offset in buffer
commitf20354910893310d5496ebb6edfc551d83d95343
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 1 Mar 2016 10:56:07 +0000 (1 18:56 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 11 Mar 2016 12:54:28 +0000 (11 14:54 +0200)
tree8a9bcec19faf0b9d864dee9f9b569d538fe90809
parent3f3009c0983428f517b743c9de14858b1fdaacb7
acpi: add build_append_named_dword, returning an offset in buffer

This is a very limited form of support for runtime patching -
similar in functionality to what we can do with ACPI_EXTRACT
macros in python, but implemented in C.

This is to allow ACPI code direct access to data tables -
which is exactly what DataTableRegion is there for, except
no known windows release so far implements DataTableRegion.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/aml-build.c
include/hw/acpi/aml-build.h