From owner-p4-projects@FreeBSD.ORG Fri Jan 5 19:01:08 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 5522916A415; Fri, 5 Jan 2007 19:01:08 +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 1376216A40F for ; Fri, 5 Jan 2007 19:01:08 +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 03C3D13C441 for ; Fri, 5 Jan 2007 19:01:08 +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 l05J17Il001350 for ; Fri, 5 Jan 2007 19:01:07 GMT (envelope-from piso@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l05J17RW001347 for perforce@freebsd.org; Fri, 5 Jan 2007 19:01:07 GMT (envelope-from piso@freebsd.org) Date: Fri, 5 Jan 2007 19:01:07 GMT Message-Id: <200701051901.l05J17RW001347@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 112554 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 19:01:08 -0000 http://perforce.freebsd.org/chv.cgi?CH=112554 Change 112554 by piso@piso_newluxor on 2007/01/05 19:00:07 Enable the irq line just after the filter claimed the interrupt. Affected files ... .. //depot/projects/soc2006/intr_filter/powerpc/powerpc/intr_machdep.c#19 edit Differences ... ==== //depot/projects/soc2006/intr_filter/powerpc/powerpc/intr_machdep.c#19 (text+ko) ==== @@ -262,6 +262,15 @@ } } +static void +intr_eoi_src(void *arg) +{ + uintptr_t nb; + + nb = (uintptr_t)arg; + irq_enable(nb); +} + void intr_handle(u_int irq) { @@ -280,13 +289,12 @@ ie = i->event; KASSERT(ie != NULL, ("%s: interrupt without an event", __func__)); - res = handle_intr(ie, NULL, intr_eoi_src_stub, - intr_disab_eoi_src_stub, NULL); + res = handle_intr(ie, NULL, intr_eoi_src, + intr_disab_eoi_src_stub, (void *)irq); switch(res) { case 0: - break; + /* FALLTHROUGH */ case ECHILD: - irq_enable(irq); break; case EINVAL: stray_int(irq);