[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/6] provide apic_set_irq_delivered
From: |
Glauber Costa |
Subject: |
[Qemu-devel] [PATCH 3/6] provide apic_set_irq_delivered |
Date: |
Mon, 28 Sep 2009 18:15:14 -0300 |
i8259 chip will use it, so provide it, and export it through pc.h
Signed-off-by: Glauber Costa <address@hidden>
---
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 b3f5179..f6b5542 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 c9cdd4a..f7c1a88 100644
--- a/hw/pc.h
+++ b/hw/pc.h
@@ -45,6 +45,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
Message not available
Re: [Qemu-devel] [PATCH 0/6] in kernel irqchip support, Jamie Lokier, 2009/09/28
Re: [Qemu-devel] [PATCH 0/6] in kernel irqchip support, Avi Kivity, 2009/09/29