From owner-p4-projects@FreeBSD.ORG Fri Jan 5 20:16:52 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 75D0616A40F; Fri, 5 Jan 2007 20:16:52 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F6F616A403 for ; Fri, 5 Jan 2007 20:16:52 +0000 (UTC) (envelope-from piso@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 1087213C44B for ; Fri, 5 Jan 2007 20:16:52 +0000 (UTC) (envelope-from piso@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l05KGpdj019708 for ; Fri, 5 Jan 2007 20:16:51 GMT (envelope-from piso@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l05KGpZp019705 for perforce@freebsd.org; Fri, 5 Jan 2007 20:16:51 GMT (envelope-from piso@freebsd.org) Date: Fri, 5 Jan 2007 20:16:51 GMT Message-Id: <200701052016.l05KGpZp019705@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to piso@freebsd.org using -f From: Paolo Pisati To: Perforce Change Reviews Cc: Subject: PERFORCE change 112560 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jan 2007 20:16:52 -0000 http://perforce.freebsd.org/chv.cgi?CH=112560 Change 112560 by piso@piso_newluxor on 2007/01/05 20:16:33 Enable the irq line just after the filter claimed the interrupt. Affected files ... .. //depot/projects/soc2006/intr_filter/ia64/ia64/interrupt.c#13 edit Differences ... ==== //depot/projects/soc2006/intr_filter/ia64/ia64/interrupt.c#13 (text+ko) ==== @@ -380,6 +380,15 @@ mtx_unlock_spin(&ia64_intrs_lock); } +static void +intr_eoi_src(void *arg) +{ + uintptr_t nb; + + nb = (uintptr_t)arg; + ia64_send_eoi(nb); +} + void ia64_dispatch_intr(void *frame, unsigned long vector) { @@ -396,13 +405,12 @@ if (i->cntp) atomic_add_long(i->cntp, 1); - res = handle_intr(i->event, frame, intr_eoi_src_stub, - intr_disab_eoi_src_stub, NULL); + res = handle_intr(i->event, frame, intr_eoi_src, + intr_disab_eoi_src_stub, (void *)vector); switch (res) { case 0: - break; + /* FALLTHROUGH */ case ECHILD: - ia64_send_eoi(vector); break; case EINVAL: panic("Interrupt vector without an event\n");