comp.lang.ada
 help / color / mirror / Atom feed
From: Jean-Pierre Rosen <rosen@adalog.fr>
Subject: Re: protected type interrupts
Date: Fri, 25 Aug 2006 19:27:08 +0200
Date: 2006-08-25T19:27:08+02:00	[thread overview]
Message-ID: <htbnce.pph.ln@hunter.axlog.fr> (raw)
In-Reply-To: <veBHg.23092$uH6.15065@twister.nyroc.rr.com>

REH a �crit :
> "Jean-Pierre Rosen" <rosen@adalog.fr> wrote in message 
> news:mf6mce.8k2.ln@hunter.axlog.fr...
>> But since you specified a priority for the PO (and assuming 
>> priority_ceiling), you still execute at interrupt priority. Depending on 
>> the hardware and how priorities are managed, this may delay or hide actual 
>> interrupts.
>>
> 
> Are you saying it may be better not to specify a priority?
> 
Not exactly. If your compiler doesn't use priority_ceiling by default 
(and you didn't specify it), then the priority is ignored.

Otherwise, the default priority of a protected object is Priority'Last 
(D.3(11)), which will result in ceiling violation if called from a PO 
which has a priority in the Interrupt_Priority range. You should then 
specify a priority at least as high as the one of the other PO.

-- 
---------------------------------------------------------
            J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr



  reply	other threads:[~2006-08-25 17:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-24 14:47 protected type interrupts REH
2006-08-24 15:39 ` Jean-Pierre Rosen
2006-08-24 16:23   ` REH
2006-08-24 18:15     ` Adam Beneschan
2006-08-24 19:16       ` REH
2006-08-24 21:16         ` Adam Beneschan
2006-08-24 21:39           ` REH
2006-08-25  6:45           ` Jean-Pierre Rosen
2006-08-24 23:55         ` Jeffrey R. Carter
2006-08-25  6:42         ` Jean-Pierre Rosen
2006-08-24 23:47     ` Jeffrey R. Carter
2006-08-25  6:38     ` Jean-Pierre Rosen
2006-08-24 20:11 ` Simon Wright
2006-08-24 23:50 ` Jeffrey R. Carter
2006-08-25  6:48   ` Jean-Pierre Rosen
2006-08-25 11:33     ` REH
2006-08-25 17:27       ` Jean-Pierre Rosen [this message]
2006-08-25 20:57     ` Jeffrey R. Carter
2006-08-25 23:17       ` REH
2006-08-26  6:38         ` Jeffrey R. Carter
2006-08-26 13:16           ` REH
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox