From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17027 invoked by alias); 27 Sep 2012 12:39:07 -0000 Received: (qmail 17018 invoked by uid 22791); 27 Sep 2012 12:39:05 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Sep 2012 12:38:59 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 77A782F78009 for ; Thu, 27 Sep 2012 13:38:57 +0100 (BST) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dBOzLNVR0zqx; Thu, 27 Sep 2012 13:38:57 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-bugs@ecos.sourceware.org Subject: [Bug 1001456] HAL misses Interrupt Clear-Pending Registers handling: wasted processing power X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: HAL X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: bernd.edlinger@hotmail.de X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: nickg@ecoscentric.com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 27 Sep 2012 12:39:00 -0000 Message-Id: <20120927123852.8B4422F7800C@mail.ecoscentric.com> Mailing-List: contact ecos-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-bugs-owner@sourceware.org X-SW-Source: 2012/txt/msg01266.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001456 Bernd Edlinger changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bernd.edlinger@hotmail.de --- Comment #28 from Bernd Edlinger 2012-09-27 13:38:45 BST --- Hi Bernard, just one thing... personally I would not like to add more Kernel APIs unless it is absolutely necessary. In the hal/arm subtree when there is an interrupt, the function hal_IRQ_handler() gets called first. This function determines the highest priority irq, and updates the ISR (in service register), this would be a place to clear the interrupt pending bit for your architecture. Suppose the clear pending is done automatically in hal_IRQ_handler() and hal_interrupt_acknowledge is empty, then this would be a safe way to write the isr/dsr in the driver: isr() { HAL_INTERRUPT_MASK(vector); HAL_INTERRUPT_ACKNOWLEGE(); return CALL_DSR; } dsr() { now handle interrupt... HAL_INTERRUPT_UNMASK(vector); } this is in fact how most drivers are already written today. would'nt that be OK for you too? Regards, Bernd Edlinger -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.