From 1a7de94aa40729b4d7ed8f37c642304866232f40 Mon Sep 17 00:00:00 2001 From: aurel32 Date: Thu, 21 Aug 2008 03:14:52 +0000 Subject: De-assert PIC IRQs properly at APIC level [ Taking latest isapc changes into account. ] Ensure that PIC-delivered IRQs are properly de-asserted in case the APIC is in EXTINT or FIXED mode (with level-triggering selected) on LINT0. Fixes EFI-BIOS boot issues. This patch also cleans up a bit the interface between PIC and APIC, making apic_local_deliver private again. Signed-off-by: Jan Kiszka Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5041 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/pc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'hw/pc.c') diff --git a/hw/pc.c b/hw/pc.c index 08e0fb6cae..880e57f233 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -119,11 +119,9 @@ static void pic_irq_request(void *opaque, int irq, int level) CPUState *env = first_cpu; if (env->apic_state) { - if (!level) - return; while (env) { if (apic_accept_pic_intr(env)) - apic_local_deliver(env, APIC_LINT0); + apic_deliver_pic_intr(env, level); env = env->next_cpu; } } else { -- cgit 1.4.1