From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philippe Gerum In-Reply-To: <4CC9CBE1.6030006@domain.hid> References: <4CC998FB.3070102@domain.hid> <4CC9CBE1.6030006@domain.hid> Content-Type: text/plain; charset="UTF-8" Date: Thu, 28 Oct 2010 21:34:29 +0200 Message-ID: <1288294469.1816.107.camel@domain.hid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] arm: Unprotected access to irq_desc field? List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: Jan Kiszka , Xenomai core On Thu, 2010-10-28 at 21:15 +0200, Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > Gilles, > > > > I happened to come across rthal_mark_irq_disabled/enabled on arm. On > > first glance, it looks like these helpers manipulate irq_desc::status > > non-atomically, i.e. without holding irq_desc::lock. Isn't this fragile? > > I have no idea. How do the other architectures do? As far as I know, > this code has been copied from there. Other archs do the same, simply because once an irq is managed by the hal, it may not be shared in any way with the regular kernel. So locking is pointless. -- Philippe.