From owner-freebsd-arm@FreeBSD.ORG Thu Apr 3 19:30:55 2008 Return-Path: Delivered-To: arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84B771065675 for ; Thu, 3 Apr 2008 19:30:55 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from speedfactory.net (mail.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id 07B9B8FC19 for ; Thu, 3 Apr 2008 19:30:54 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8s) with ESMTP id 237828024-1834499 for ; Thu, 03 Apr 2008 15:15:28 -0400 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m33JEjiB095942 for ; Thu, 3 Apr 2008 15:14:45 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: arm@FreeBSD.org Date: Thu, 3 Apr 2008 15:14:33 -0400 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804031514.33243.jhb@FreeBSD.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Thu, 03 Apr 2008 15:14:45 -0400 (EDT) X-Virus-Scanned: ClamAV 0.91.2/6568/Thu Apr 3 12:12:56 2008 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: Subject: A patch to simplify the MD interrupt code a bit.. X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 19:30:55 -0000 This patch adds an MI intr_event_handle() routine for the non-FILTER case so that the MD code becomes identical in both cases and all the INTR_FILTER #ifdef's end up in kern_intr.c. It's been tested on amd64, i386, and sparc64 and cross-compiled on ppc, arm, and ia64. I'd like to get it tested on arm as I slightly adjusted the MD code to just not bother masking the interrupt unless we are going to run an ithread which is mostly what the existing FILTER code did except that it unmasked the interrupt when it wasn't masked in the first place if a filter handled the interrupt. Patch is at http://www.freebsd.org/~jhb/patches/intr_filter.patch -- John Baldwin