From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqXya-0007JI-88 for qemu-devel@nongnu.org; Thu, 07 May 2015 22:25:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqXyX-0003qd-1p for qemu-devel@nongnu.org; Thu, 07 May 2015 22:25:20 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:50572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqXyW-0003pc-8a for qemu-devel@nongnu.org; Thu, 07 May 2015 22:25:16 -0400 Message-ID: <554C1E6B.8070701@huawei.com> Date: Fri, 8 May 2015 10:24:43 +0800 From: Shannon Zhao MIME-Version: 1.0 References: <1430990964-10528-1-git-send-email-zhaoshenglong@huawei.com> <1430990964-10528-6-git-send-email-zhaoshenglong@huawei.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v6 05/22] hw/acpi/aml-build: Add aml_interrupt() term List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: hangaohuai@huawei.com, "Michael S. Tsirkin" , Alexander Spyridakis , Claudio Fontana , QEMU Developers , "Huangpeng (Peter)" , =?UTF-8?B?QWxleCBCZW5uw6ll?= , Hanjun Guo , Igor Mammedov , Paolo Bonzini , Laszlo Ersek , Christoffer Dall , Shannon Zhao On 2015/5/7 23:51, Peter Maydell wrote: > On 7 May 2015 at 10:29, Shannon Zhao wrote: >> > From: Shannon Zhao >> > >> > 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