qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 11/18] pc.c: introduce a function to allocate cp


From: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH 11/18] pc.c: introduce a function to allocate cpu irq.
Date: Sun, 21 Jun 2009 23:32:20 +0300

On 6/18/09, Isaku Yamahata <address@hidden> 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 <address@hidden>
>  ---
>   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




reply via email to

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