From owner-p4-projects@FreeBSD.ORG Tue Jan 2 17:20:23 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 032DC16A40F; Tue, 2 Jan 2007 17:20:23 +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 B6B6016A407; Tue, 2 Jan 2007 17:20:22 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 61B6113C45B; Tue, 2 Jan 2007 17:20:22 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id l02HKKIA012104; Tue, 2 Jan 2007 12:20:20 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Olivier Houchard Date: Tue, 2 Jan 2007 12:20:09 -0500 User-Agent: KMail/1.9.4 References: <200701021653.l02GrTiC007919@repoman.freebsd.org> In-Reply-To: <200701021653.l02GrTiC007919@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701021220.09987.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [192.168.0.1]); Tue, 02 Jan 2007 12:20:20 -0500 (EST) X-Virus-Scanned: ClamAV 0.88.3/2406/Tue Jan 2 06:58:55 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Perforce Change Reviews Subject: Re: 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 17:20:23 -0000 On Tuesday 02 January 2007 11:53, Olivier Houchard wrote: > 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. Err, you shouldn't need to mask the IRQ unless you schedule the ithread. Hmm, I'd also prefer it if we didn't pass function handlers to mi_handle_intr() (which should be intr_handle() or something, all the MI interrupt code is intr_foo(), not mi_foo_intr()) but instead set them in the intr_event and passed them to intr_event_create(). > 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; > -- John Baldwin