From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mvegn-0001x8-NS for qemu-devel@nongnu.org; Wed, 07 Oct 2009 18:08:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mvegh-0001tW-De for qemu-devel@nongnu.org; Wed, 07 Oct 2009 18:08:51 -0400 Received: from [199.232.76.173] (port=51538 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mvegh-0001tR-5W for qemu-devel@nongnu.org; Wed, 07 Oct 2009 18:08:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15431) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mvegg-0006t0-OI for qemu-devel@nongnu.org; Wed, 07 Oct 2009 18:08:46 -0400 From: Glauber Costa Date: Wed, 7 Oct 2009 19:08:31 -0300 Message-Id: <1254953315-5761-6-git-send-email-glommer@redhat.com> In-Reply-To: <1254953315-5761-5-git-send-email-glommer@redhat.com> References: <1254953315-5761-1-git-send-email-glommer@redhat.com> <1254953315-5761-2-git-send-email-glommer@redhat.com> <1254953315-5761-3-git-send-email-glommer@redhat.com> <1254953315-5761-4-git-send-email-glommer@redhat.com> <1254953315-5761-5-git-send-email-glommer@redhat.com> Subject: [Qemu-devel] [PATCH v2 5/9] provide apic_set_irq_delivered List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com i8259 chip will use it, so provide it, and export it through pc.h Signed-off-by: Glauber Costa --- hw/apic.c | 5 +++++ hw/pc.h | 1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/apic.c b/hw/apic.c index 5635607..c32e2b5 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -392,6 +392,11 @@ void apic_reset_irq_delivered(void) apic_irq_delivered = 0; } +void apic_set_irq_delivered(void) +{ + apic_irq_delivered = 1; +} + int apic_get_irq_delivered(void) { return apic_irq_delivered; diff --git a/hw/pc.h b/hw/pc.h index d85f7fd..15d0140 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -46,6 +46,7 @@ int apic_get_interrupt(CPUState *env); qemu_irq *ioapic_init(void); void ioapic_set_irq(void *opaque, int vector, int level); void apic_reset_irq_delivered(void); +void apic_set_irq_delivered(void); int apic_get_irq_delivered(void); /* i8254.c */ -- 1.6.2.5