[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 for-2.3 09/25] acpi: add aml_while() term
From: |
Shannon Zhao |
Subject: |
Re: [Qemu-devel] [PATCH v4 for-2.3 09/25] acpi: add aml_while() term |
Date: |
Mon, 9 Mar 2015 16:20:49 +0800 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
On 2015/3/8 19:16, Marcel Apfelbaum wrote:
> Add encoding for ACPI DefWhile Opcode.
>
> Reviewed-by: Igor Mammedov <address@hidden>
> Signed-off-by: Marcel Apfelbaum <address@hidden>
Reviewed-by: Shannon Zhao <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 6315ea0..f85a0fb 100644
> --- a/hw/acpi/aml-build.c
> +++ b/hw/acpi/aml-build.c
> @@ -623,6 +623,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);
>
--
Thanks,
Shannon
- [Qemu-devel] [PATCH v4 for-2.3 06/25] acpi: add aml_shiftleft() term, (continued)
- [Qemu-devel] [PATCH v4 for-2.3 07/25] acpi: add aml_shiftright() term, Marcel Apfelbaum, 2015/03/08
- [Qemu-devel] [PATCH v4 for-2.3 08/25] acpi: add aml_increment() term, Marcel Apfelbaum, 2015/03/08
- [Qemu-devel] [PATCH v4 for-2.3 09/25] acpi: add aml_while() term, Marcel Apfelbaum, 2015/03/08
- Re: [Qemu-devel] [PATCH v4 for-2.3 09/25] acpi: add aml_while() term,
Shannon Zhao <=
- [Qemu-devel] [PATCH v4 for-2.3 10/25] hw/acpi: add support for multiple root busses, Marcel Apfelbaum, 2015/03/08
- [Qemu-devel] [PATCH v4 for-2.3 11/25] hw/apci: add _PRT method for extra PCI root busses, Marcel Apfelbaum, 2015/03/08
[Qemu-devel] [PATCH v4 for-2.3 12/25] hw/acpi: add _CRS method for extra root busses, Marcel Apfelbaum, 2015/03/08