summaryrefslogtreecommitdiffstats
path: root/hw/acpi
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2015-02-18 19:14:45 +0000
committerMichael S. Tsirkin <mst@redhat.com>2015-02-26 13:04:17 +0100
commite2ea299b01fbd9d4d0262cfbfcbdbd02ada984a5 (patch)
tree581320d9476c2bdc7bdd06f19905ae00a041ca21 /hw/acpi
parentddf1ec2ffe30bd6bb34acc020622741eafc16b79 (diff)
downloadhqemu-e2ea299b01fbd9d4d0262cfbfcbdbd02ada984a5.zip
hqemu-e2ea299b01fbd9d4d0262cfbfcbdbd02ada984a5.tar.gz
acpi: add aml_reserved_field() term
Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/acpi')
-rw-r--r--hw/acpi/aml-build.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c
index eeb006f..9d9b978 100644
--- a/hw/acpi/aml-build.c
+++ b/hw/acpi/aml-build.c
@@ -598,6 +598,16 @@ Aml *aml_named_field(const char *name, unsigned length)
return var;
}
+/* ACPI 1.0b: 16.2.5.2 Named Objects Encoding: ReservedField */
+Aml *aml_reserved_field(unsigned length)
+{
+ Aml *var = aml_alloc();
+ /* ReservedField := 0x00 PkgLength */
+ build_append_byte(var->buf, 0x00);
+ build_append_pkg_length(var->buf, length, false);
+ return var;
+}
+
/* ACPI 1.0b: 16.2.5.2 Named Objects Encoding: DefField */
Aml *aml_field(const char *name, AmlFieldFlags flags)
{
OpenPOWER on IntegriCloud