From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MITiG-0001pV-6l for qemu-devel@nongnu.org; Sun, 21 Jun 2009 16:32:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MITiA-0001j9-IP for qemu-devel@nongnu.org; Sun, 21 Jun 2009 16:32:26 -0400 Received: from [199.232.76.173] (port=44347 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MITiA-0001j0-Ce for qemu-devel@nongnu.org; Sun, 21 Jun 2009 16:32:22 -0400 Received: from mail-fx0-f209.google.com ([209.85.220.209]:55221) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MITi9-0008Oq-UT for qemu-devel@nongnu.org; Sun, 21 Jun 2009 16:32:22 -0400 Received: by fxm5 with SMTP id 5so2450022fxm.34 for ; Sun, 21 Jun 2009 13:32:20 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1245322637-32545-12-git-send-email-yamahata@valinux.co.jp> References: <1245322637-32545-1-git-send-email-yamahata@valinux.co.jp> <1245322637-32545-12-git-send-email-yamahata@valinux.co.jp> Date: Sun, 21 Jun 2009 23:32:20 +0300 Message-ID: Subject: Re: [Qemu-devel] [PATCH 11/18] pc.c: introduce a function to allocate cpu irq. From: Blue Swirl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Isaku Yamahata Cc: qemu-devel@nongnu.org On 6/18/09, Isaku Yamahata wrote: > Introduce a function, pc_allocate_cpu_irq(), to allocate cpu irq > in order to make pic_irq_request() piix independent. > Later piix code will be split out to another file keeping pic_irq_request() > static. > > Signed-off-by: Isaku Yamahata > --- > hw/pc.c | 7 ++++++- > 1 files changed, 6 insertions(+), 1 deletions(-) > > diff --git a/hw/pc.c b/hw/pc.c > index 04d61bd..16e95ec 100644 > --- a/hw/pc.c > +++ b/hw/pc.c > @@ -841,6 +841,11 @@ int cpu_is_bsp(CPUState *env) > return env->cpuid_apic_id == 0; > } > > +static qemu_irq *pc_allocte_cpu_irq(void) allocte -> allocate > - cpu_irq = qemu_allocate_irqs(pic_irq_request, NULL, 1); > + cpu_irq = pc_allocte_cpu_irq(); allocte -> allocate