From: Marcel Apfelbaum Date: Tue, 2 Jun 2015 11:22:56 +0000 (+0300) Subject: acpi: add implementation of aml_while() term X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~161^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32d9ca15bac63e8a7bad6dc1a4ab624e6d6d3b0f;p=sdk%2Femulator%2Fqemu.git acpi: add implementation of aml_while() term Commit 68e6b0af7 (acpi: add aml_while() term) added the definition of aml_while without the actual implementation. Implement the term. Signed-off-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Acked-by: Laszlo Ersek --- diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 2bebf23..0d4b324 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -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) {