<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 17, 2019 at 3:45 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
we have currently three Ada related configuration options:<br>
<br>
* CONFIGURE_GNAT_RTEMS<br>
<br>
* CONFIGURE_MAXIMUM_ADA_TASKS<br>
<br>
* CONFIGURE_MAXIMUM_FAKE_ADA_TASKS<br>
<br>
The CONFIGURE_MAXIMUM_FAKE_ADA_TASKS option has no effect.  The <br>
CONFIGURE_GNAT_RTEMS is mandatory to use the CONFIGURE_MAXIMUM_ADA_TASKS <br>
option. So, if you just use<br>
<br>
#define CONFIGURE_MAXIMUM_ADA_TASKS 123<br>
<br>
then you get a re-definition warning and hopefully pay attention to it. <br>
This is not very user friendly from point of view.<br>
<br>
The CONFIGURE_MAXIMUM_ADA_TASKS just adds the configured count to <br>
CONFIGURE_MAXIMUM_POSIX_THREADS.<br>
<br>
I would obsolete all three options.<br></blockquote><div><br></div><div>The original purpose of these was to:</div><div><br></div><div>CONFIGURE_GNAT_RTEMS - add in resources required by Ada run-time independent</div><div>of the number of Ada tasks (e.g. POSIX threads)</div><div><br></div><div>CONFIGURE_MAXIMUM_ADA_TASKS - add in POSIX threads, condition variable,</div><div>and mutex required for each Ada task</div><div><br></div><div>CONFIGURE_MAXIMUM_FAKE_ADA_TASKS - add in condition variables and mutex</div><div>required by Ada run-time for a task/thread created outside the Ada run-time which </div><div>invokes Ada code and is thus a user of the run-time.</div><div><br></div><div>Given that you can turn on unlimited threads now and condition variables and mutexes</div><div>are static, I don't think they have a need any longer. Plus it sounds like they bit rotted.</div><div>If we needed them still, they would have to be fixed.</div><div><br></div><div>We still need documentation that Ada tasks are POSIX threads and must be accounted</div><div>for in configuring the system. So when moving documentation around, please make that</div><div>point clear in the CONFIGURE_MAXIMUM_POSIX_THREADS description.</div><div><br></div><div>--joel</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone   : +49 89 189 47 41-16<br>
Fax     : +49 89 189 47 41-09<br>
E-Mail  : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
PGP     : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div>