From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e6066104d6deadff X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news2.google.com!news.germany.com!newsfeed.stueberl.de!proxad.net!news.in2p3.fr!in2p3.fr!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: protected type interrupts Date: Fri, 25 Aug 2006 19:27:08 +0200 Organization: Adalog Message-ID: References: <1156430839.745932.279060@75g2000cwc.googlegroups.com> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1156528863 8950 195.25.228.57 (25 Aug 2006 18:01:03 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Fri, 25 Aug 2006 18:01:03 +0000 (UTC) User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) In-Reply-To: Xref: g2news2.google.com comp.lang.ada:6382 Date: 2006-08-25T19:27:08+02:00 List-Id: REH a �crit : > "Jean-Pierre Rosen" 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