summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2015-02-18 19:14:39 +0000
committerMichael S. Tsirkin <mst@redhat.com>2015-02-26 13:04:16 +0100
commita678508e46ac806d81bd401a483aef1b98734ae4 (patch)
tree9d3c0f4978b766b2eb5461eb31791869199c3c5f /hw
parentcd61cb2e2c02c5c257a15a52b3d0616474e52997 (diff)
downloadqemu-a678508e46ac806d81bd401a483aef1b98734ae4.tar.gz
qemu-a678508e46ac806d81bd401a483aef1b98734ae4.tar.bz2
qemu-a678508e46ac806d81bd401a483aef1b98734ae4.zip
acpi: add aml_varpackage() 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')
-rw-r--r--hw/acpi/aml-build.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c
index 57a65dd695..36aafe4bfb 100644
--- a/hw/acpi/aml-build.c
+++ b/hw/acpi/aml-build.c
@@ -632,3 +632,11 @@ Aml *aml_local(int num)
var = aml_opcode(op);
return var;
}
+
+/* ACPI 2.0a: 17.2.2 Data Objects Encoding: DefVarPackage */
+Aml *aml_varpackage(uint32_t num_elements)
+{
+ Aml *var = aml_bundle(0x13 /* VarPackageOp */, AML_PACKAGE);
+ build_append_int(var->buf, num_elements);
+ return var;
+}