From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28997 invoked by alias); 1 Nov 2013 17:06:59 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 28981 invoked by uid 89); 1 Nov 2013 17:06:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: calivar.com Received: from calivar.demon.co.uk (HELO calivar.com) (83.104.54.243) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 01 Nov 2013 17:06:58 +0000 Received: from daikon.calivar.com (daikon.calivar.com [10.0.1.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by calivar.com (Postfix) with ESMTPS id 26D555FEFD; Fri, 1 Nov 2013 17:06:55 +0000 (GMT) Message-ID: <5273DFAE.1080000@calivar.com> Date: Fri, 01 Nov 2013 17:06:00 -0000 From: Nick Garnett User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Andrew Parlane , ecos-discuss@ecos.sourceware.org References: <52729021.3080205@carallon.com> In-Reply-To: <52729021.3080205@carallon.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Subject: Re: [ECOS] Spurious interrupt on ARM. X-SW-Source: 2013-11/txt/msg00003.txt.bz2 On 31/10/13 17:15, Andrew Parlane wrote: > Looking at hal/arm/arch/current/src/vectors.S in IRQ: > > We increment the scheduler lock and decrement it again in interrupt_end. > > In the case of there being a spurious interrupt, we don't call > interrupt_end, and so the scheduler never gets decremented. > > Am I missing something here? interrupt_end() does get called. A spurious interrupt only causes the code to skip calling an ISR by jumping to the spurious_IRQ label. From there it follows the same code path and will call interrupt_end() as normal. -- Nick Garnett Kernel Architect eCosCentric Limited http://www.eCosCentric.com The eCos experts Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571 Registered in England and Wales: Reg No: 4422071 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss