From owner-p4-projects@FreeBSD.ORG Tue Jan 2 16:53:29 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 BADD716A412; Tue, 2 Jan 2007 16:53:29 +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 86DD616A403 for ; Tue, 2 Jan 2007 16:53:29 +0000 (UTC) (envelope-from cognet@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 781C713C457 for ; Tue, 2 Jan 2007 16:53:29 +0000 (UTC) (envelope-from cognet@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 l02GrTvk007923 for ; Tue, 2 Jan 2007 16:53:29 GMT (envelope-from cognet@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l02GrTiC007919 for perforce@freebsd.org; Tue, 2 Jan 2007 16:53:29 GMT (envelope-from cognet@freebsd.org) Date: Tue, 2 Jan 2007 16:53:29 GMT Message-Id: <200701021653.l02GrTiC007919@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to cognet@freebsd.org using -f From: Olivier Houchard To: Perforce Change Reviews Cc: Subject: PERFORCE change 112424 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: Tue, 02 Jan 2007 16:53:30 -0000 http://perforce.freebsd.org/chv.cgi?CH=112424 Change 112424 by cognet@hulglah on 2007/01/02 16:52:32 Implement a minimalist intr_eoi_src which just calls arm_unmask_irq(), so that irq are unmasked after a filter+ithread runs. Affected files ... .. //depot/projects/soc2006/intr_filter/arm/arm/intr.c#10 edit Differences ... ==== //depot/projects/soc2006/intr_filter/arm/arm/intr.c#10 (text+ko) ==== @@ -122,6 +122,15 @@ return (NULL); } +static void +intr_eoi_src(void *arg) +{ + uintptr_t nb; + + nb = (uintptr_t)arg; + arm_unmask_irq(nb); +} + void arm_handler_execute(struct trapframe *frame, int irqnb __unused) { @@ -133,8 +142,8 @@ arm_mask_irq(i); intrcnt[intrcnt_tab[i]]++; event = intr_events[i]; - res = mi_handle_intr(event, frame, intr_eoi_src_stub, - intr_disab_eoi_src_stub, NULL); + res = mi_handle_intr(event, frame, intr_eoi_src, + intr_disab_eoi_src_stub, (void *)i); switch (res) { case 0: break;