From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4CC9D0F7.60603@domain.hid> Date: Thu, 28 Oct 2010 21:37:27 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <4CC998FB.3070102@domain.hid> In-Reply-To: <4CC998FB.3070102@domain.hid> Content-Type: text/plain; charset=UTF-8 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: Jan Kiszka Cc: Xenomai core 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? >>From my point of view, locking anything would be overkill on ARM: irq configurations are completely static as per the board, and so, ARMs can use proper irq demuxing, instead of the "shared irqs" workaround. So, in other word, I do not see why we would need any locking. -- Gilles.