[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 for-2.3 08/24] acpi: add aml_while
From: |
Igor Mammedov |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 for-2.3 08/24] acpi: add aml_while() term |
Date: |
Fri, 6 Mar 2015 11:56:18 +0100 |
On Thu, 5 Mar 2015 16:55:06 +0200
Marcel Apfelbaum <address@hidden> wrote:
> Add encoding for ACPI DefWhile Opcode.
>
> Signed-off-by: Marcel Apfelbaum <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
> ---
> hw/acpi/aml-build.c | 8 ++++++++
> include/hw/acpi/aml-build.h | 1 +
> 2 files changed, 9 insertions(+)
>
> diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c
> index 86b2ddc..eb53d90 100644
> --- a/hw/acpi/aml-build.c
> +++ b/hw/acpi/aml-build.c
> @@ -621,6 +621,14 @@ Aml *aml_if(Aml *predicate)
> 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)
> {
> diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h
> index c41f400..4f695a2 100644
> --- a/include/hw/acpi/aml-build.h
> +++ b/include/hw/acpi/aml-build.h
> @@ -189,6 +189,7 @@ Aml *aml_scope(const char *name_format, ...)
> GCC_FMT_ATTR(1, 2);
> Aml *aml_device(const char *name_format, ...) GCC_FMT_ATTR(1, 2);
> Aml *aml_method(const char *name, int arg_count);
> Aml *aml_if(Aml *predicate);
> +Aml *aml_while(Aml *predicate);
> Aml *aml_package(uint8_t num_elements);
> Aml *aml_buffer(void);
> Aml *aml_resource_template(void);
- Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 for-2.3 04/24] acpi: add aml_index() term, (continued)
- [Qemu-ppc] [Qemu-devel] [PATCH v3 for-2.3 02/24] acpi: add aml_add() term, Marcel Apfelbaum, 2015/03/05
- [Qemu-ppc] [Qemu-devel] [PATCH v3 for-2.3 05/24] acpi: add aml_shiftleft() term, Marcel Apfelbaum, 2015/03/05
- [Qemu-ppc] [Qemu-devel] [PATCH v3 for-2.3 06/24] acpi: add aml_shiftright() term, Marcel Apfelbaum, 2015/03/05
- [Qemu-ppc] [Qemu-devel] [PATCH v3 for-2.3 07/24] acpi: add aml_increment() term, Marcel Apfelbaum, 2015/03/05
- [Qemu-ppc] [Qemu-devel] [PATCH v3 for-2.3 08/24] acpi: add aml_while() term, Marcel Apfelbaum, 2015/03/05
- Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 for-2.3 08/24] acpi: add aml_while() term,
Igor Mammedov <=
- [Qemu-ppc] [Qemu-devel] [PATCH v3 for-2.3 09/24] hw/acpi: add support for multiple root busses, Marcel Apfelbaum, 2015/03/05
- [Qemu-ppc] [Qemu-devel] [PATCH v3 for-2.3 10/24] hw/apci: add _PRT method for extra PCI root busses, Marcel Apfelbaum, 2015/03/05
- Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 for-2.3 10/24] hw/apci: add _PRT method for extra PCI root busses, Michael S. Tsirkin, 2015/03/08