From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25015 invoked by alias); 27 Aug 2007 07:50:55 -0000 Received: (qmail 24941 invoked by uid 22791); 27 Aug 2007 07:50:54 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 27 Aug 2007 07:50:50 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1IPZMz-0007iq-00; Mon, 27 Aug 2007 09:50:45 +0200 Date: Mon, 27 Aug 2007 07:50:00 -0000 From: Andrew Lunn To: ramdaspi@gmail.com Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20070827075045.GY31057@lunn.ch> Mail-Followup-To: ramdaspi@gmail.com, ecos-discuss@ecos.sourceware.org References: <20c673620708270040t431a2d81v16d0179daf1df5f7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20c673620708270040t431a2d81v16d0179daf1df5f7@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-11) X-IsSubscribed: yes 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 Subject: Re: [ECOS] cyg_hal_interrupt_acknowledge function for MPC8xxx HAL X-SW-Source: 2007-08/txt/msg00144.txt.bz2 On Mon, Aug 27, 2007 at 04:40:37PM +0900, ramdaspi@gmail.com wrote: > Hi, > > It seems there is a problem in clearing interrupts in function > cyg_hal_interrupt_acknowledge of the MPC8xxx HAL that would result in > simultaneous interrupts being missed. > > If there were multiple interrupts being reported, all of them would > get cleared when only one is being acknowledged because we read the > value, OR it with the mask for acknowledged vector and then write this > value. > > The documentation says we should write 1's to locations that need to > be cleared. So I believe there is no need for the read or 'OR' > operation. Just write the mask for the vector. > > I our board we were missing one of the interrupts with the original > code. With the modification it is working correctly. Please could you provide a patch with a ChangeLog. Also a reference to the documentation would be nice so we can verify this. Thanks Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss