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-7-bit Path: g2news2.google.com!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mail From: "REH" Newsgroups: comp.lang.ada Subject: Re: protected type interrupts Date: 24 Aug 2006 09:23:36 -0700 Organization: http://groups.google.com Message-ID: <1156436616.384632.192250@h48g2000cwc.googlegroups.com> References: <1156430839.745932.279060@75g2000cwc.googlegroups.com> NNTP-Posting-Host: 192.91.173.42 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1156436622 7511 127.0.0.1 (24 Aug 2006 16:23:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 24 Aug 2006 16:23:42 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: h48g2000cwc.googlegroups.com; posting-host=192.91.173.42; posting-account=lnUIyw0AAACoRB2fMF2SFTIilm8F10q2 Xref: g2news2.google.com comp.lang.ada:6344 Date: 2006-08-24T09:23:36-07:00 List-Id: Jean-Pierre Rosen wrote: > C.3.1 (17) allows them to pretty much anything. Apparently, a > ceiling_priority is in effect (either because you specified it, or by > default), thus your task inherits the ceiling of the protected type > (which is an interrupt_priority), and this implementation seems to > forbid an entry to be called at an interrupt level. > Thanks for the reference. Is your work-around valid? Isn't calling Relay_Object.Isr a potentially blocking operation, and thus a bad thing to do in an interrupt? Another work-around suggested to me was to move the processing logic out of the entry and into the task, and just use the entry for the triggerring. What do you think about this? REH