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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "G.B." Newsgroups: comp.lang.ada Subject: Re: Ravenscar and context switching for Cortex-M4 Date: Fri, 13 Feb 2015 13:41:03 +0100 Organization: A noiseless patient Spider Message-ID: References: Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 13 Feb 2015 12:40:26 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="b96887e80893c84a90c3007226ca0d1c"; logging-data="31864"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18xEjFY3hbx5XSEVaMGW2sYCNvbxoV6b6g=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: Cancel-Lock: sha1:DDSsFK2motxqcOzey5HxlPpPs18= Xref: news.eternal-september.org comp.lang.ada:24957 Date: 2015-02-13T13:41:03+01:00 List-Id: On 12.02.15 22:28, Niklas Holsti wrote: > On 15-02-12 22:25 , Patrick Noffke wrote: >> According to >> http://docs.adacore.com/gnathie_ug-docs/html/gnathie_ug/gnathie_ug/the_predefined_profiles.html#ada-restrictions-in-the-ravenscar-profiles, >> >> at most one task may be queued on an entry. I take this to mean *on >> a single entry* and that two tasks may be simultaneously queued on >> separate entries. Is that correct? > > Definitely correct. Are you sure this is correct? The profile includes Simple_Barriers, Max_Entry_Queue_Length => 1, Max_Protected_Entries => 1, Max_Task_Entries => 0, I thought "essentially no queuing" (hence no more than one simple entry per object) is a good rule of thumb for Ravenscar profile based programming.