Skip to content

Commit

Permalink
acpi: add implementation of aml_while() term
Browse files Browse the repository at this point in the history
Commit 68e6b0a (acpi: add aml_while() term) added
the definition of aml_while without the actual implementation.
Implement the term.

Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
  • Loading branch information
marcel-apf authored and mstsirkin committed Jun 3, 2015
1 parent ca9b46b commit 32d9ca1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hw/acpi/aml-build.c
Expand Up @@ -687,6 +687,14 @@ Aml *aml_else(void)
return var;
}

/* ACPI 1.0b: 16.2.5.3 Type 1 Opcodes Encoding: DefWhile */
Aml *aml_while(Aml *predicate)
{
Aml *var = aml_bundle(0xA2 /* WhileOp */, AML_PACKAGE);
aml_append(var, predicate);
return var;
}

/* ACPI 1.0b: 16.2.5.2 Named Objects Encoding: DefMethod */
Aml *aml_method(const char *name, int arg_count)
{
Expand Down

0 comments on commit 32d9ca1

Please sign in to comment.