qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v6 05/22] hw/acpi/aml-build: Add aml_interrupt()


From: Shannon Zhao
Subject: Re: [Qemu-devel] [PATCH v6 05/22] hw/acpi/aml-build: Add aml_interrupt() term
Date: Fri, 8 May 2015 10:24:43 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

On 2015/5/7 23:51, Peter Maydell wrote:
> On 7 May 2015 at 10:29, Shannon Zhao <address@hidden> wrote:
>> > From: Shannon Zhao <address@hidden>
>> >
>> > Add aml_interrupt() for describing device interrupt in resource template.
>> > These can be used to generating DSDT table for ACPI on ARM.
>> > +    /* Interrupt Number */
>> > +    build_append_byte(var->buf, extract32(irq, 0, 8)); /* bits[7:0] */
>> > +    build_append_byte(var->buf, extract32(irq, 8, 8)); /* bits[15:8] */
>> > +    build_append_byte(var->buf, extract32(irq, 16, 8)); /* bits[23:16] */
>> > +    build_append_byte(var->buf, extract32(irq, 24, 8)); /* bits[31:24] */
> You used this twice in the previous patch and again here. Can
> we factor it out so we can
>   build_append_uint32(var->buf, irq);
> 

Ok, thanks for your suggestion, will fix this.

-- 
Shannon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]