aboutsummaryrefslogtreecommitdiff
path: root/hw/acpi
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2015-02-18 19:14:26 +0000
committerMichael S. Tsirkin <mst@redhat.com>2015-02-26 13:04:12 +0100
commit34189453f1783c934d3824ff4636684f3ab20810 (patch)
tree661df89e64aae6ed59b0241fe76fec8bf0de86e9 /hw/acpi
parent926f5aaefad164dabcdd771f4c15c9773383d9e9 (diff)
downloadqemu-34189453f1783c934d3824ff4636684f3ab20810.zip
qemu-34189453f1783c934d3824ff4636684f3ab20810.tar.gz
qemu-34189453f1783c934d3824ff4636684f3ab20810.tar.bz2
acpi: add aml_notify() 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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c
index bb1fbbc..3e187fa 100644
--- a/hw/acpi/aml-build.c
+++ b/hw/acpi/aml-build.c
@@ -427,6 +427,15 @@ Aml *aml_and(Aml *arg1, Aml *arg2)
return var;
}
+/* ACPI 1.0b: 16.2.5.3 Type 1 Opcodes Encoding: DefNotify */
+Aml *aml_notify(Aml *arg1, Aml *arg2)
+{
+ Aml *var = aml_opcode(0x86 /* NotifyOp */);
+ aml_append(var, arg1);
+ aml_append(var, arg2);
+ return var;
+}
+
/* ACPI 1.0b: 16.2.5.3 Type 1 Opcodes Encoding: DefIfElse */
Aml *aml_if(Aml *predicate)
{