<div dir="ltr">Given a cursory review, this looks OK.<div><br></div><div>What native GNAT version do you use to build the RTEMS GNAT?</div><div><br></div><div>--joel</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 18, 2019 at 9:26 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">Update #3845.<br>
---<br>
cpukit/include/rtems/confdefs.h | 80 ++++++++++-------------------------------<br>
1 file changed, 18 insertions(+), 62 deletions(-)<br>
<br>
diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h<br>
index f4ada7ead4..ae0c9874a6 100644<br>
--- a/cpukit/include/rtems/confdefs.h<br>
+++ b/cpukit/include/rtems/confdefs.h<br>
@@ -2300,43 +2300,6 @@ struct _reent *__getreent(void)<br>
#endif<br>
/**@}*/ /* end of POSIX API Configuration */<br>
<br>
-/**<br>
- * @defgroup ConfigurationGNAT GNAT/RTEMS Configuration<br>
- *<br>
- * @addtogroup Configuration<br>
- *<br>
- * This modules includes configuration parameters for applications which<br>
- * use GNAT/RTEMS. GNAT implements each Ada task as a POSIX thread.<br>
- */<br>
-/**@{*/<br>
-#ifdef CONFIGURE_GNAT_RTEMS<br>
- /**<br>
- * This is the maximum number of Ada tasks which can be concurrently<br>
- * in existence. Twenty (20) are required to run all tests in the<br>
- * ACATS (formerly ACVC).<br>
- */<br>
- #ifndef CONFIGURE_MAXIMUM_ADA_TASKS<br>
- #define CONFIGURE_MAXIMUM_ADA_TASKS 20<br>
- #endif<br>
-<br>
- /**<br>
- * This is the number of non-Ada tasks which invoked Ada code.<br>
- */<br>
- #ifndef CONFIGURE_MAXIMUM_FAKE_ADA_TASKS<br>
- #define CONFIGURE_MAXIMUM_FAKE_ADA_TASKS 0<br>
- #endif<br>
-#else<br>
- /** This defines he number of POSIX mutexes GNAT needs. */<br>
- /** This defines he number of Ada tasks needed by the application. */<br>
- #define CONFIGURE_MAXIMUM_ADA_TASKS 0<br>
- /**<br>
- * This defines he number of non-Ada tasks/threads that will invoke<br>
- * Ada subprograms or functions.<br>
- */<br>
- #define CONFIGURE_MAXIMUM_FAKE_ADA_TASKS 0<br>
-#endif<br>
-/**@}*/ /* end of GNAT Configuration */<br>
-<br>
/**<br>
* This is so we can account for tasks with stacks greater than minimum<br>
* size. This is in bytes.<br>
@@ -2345,13 +2308,6 @@ struct _reent *__getreent(void)<br>
#define CONFIGURE_EXTRA_TASK_STACKS 0<br>
#endif<br>
<br>
-/**<br>
- * This macro provides a summation of the various POSIX thread requirements.<br>
- */<br>
-#define _CONFIGURE_POSIX_THREADS \<br>
- (CONFIGURE_MAXIMUM_POSIX_THREADS + \<br>
- CONFIGURE_MAXIMUM_ADA_TASKS)<br>
-<br>
/*<br>
* We must be able to split the free block used for the second last allocation<br>
* into two parts so that we have a free block for the last allocation. See<br>
@@ -2478,20 +2434,11 @@ struct _reent *__getreent(void)<br>
(_Configure_Max_Objects( CONFIGURE_MAXIMUM_POSIX_THREADS ) * \<br>
_Configure_From_stackspace( CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZE ) )<br>
<br>
-/*<br>
- * This macro is calculated to specify the memory required for<br>
- * the stacks of all Ada tasks.<br>
- */<br>
-#define _CONFIGURE_ADA_TASKS_STACK \<br>
- (_Configure_Max_Objects( CONFIGURE_MAXIMUM_ADA_TASKS ) * \<br>
- _Configure_From_stackspace( CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZE ) )<br>
-<br>
#else /* CONFIGURE_EXECUTIVE_RAM_SIZE */<br>
<br>
#define _CONFIGURE_INITIALIZATION_THREADS_EXTRA_STACKS 0<br>
#define _CONFIGURE_TASKS_STACK 0<br>
#define _CONFIGURE_POSIX_THREADS_STACK 0<br>
-#define _CONFIGURE_ADA_TASKS_STACK 0<br>
<br>
#if CONFIGURE_EXTRA_MPCI_RECEIVE_SERVER_STACK != 0<br>
#error "CONFIGURE_EXECUTIVE_RAM_SIZE defined with request for CONFIGURE_EXTRA_MPCI_RECEIVE_SERVER_STACK"<br>
@@ -2512,7 +2459,6 @@ struct _reent *__getreent(void)<br>
_CONFIGURE_INITIALIZATION_THREADS_EXTRA_STACKS + \<br>
_CONFIGURE_TASKS_STACK + \<br>
_CONFIGURE_POSIX_THREADS_STACK + \<br>
- _CONFIGURE_ADA_TASKS_STACK + \<br>
_CONFIGURE_LIBBLOCK_TASK_EXTRA_STACKS + \<br>
CONFIGURE_EXTRA_TASK_STACKS + \<br>
_CONFIGURE_HEAP_HANDLER_OVERHEAD \<br>
@@ -2639,7 +2585,7 @@ struct _reent *__getreent(void)<br>
<br>
const size_t _Thread_Initial_thread_count =<br>
rtems_resource_maximum_per_allocation( _CONFIGURE_TASKS ) +<br>
- rtems_resource_maximum_per_allocation( _CONFIGURE_POSIX_THREADS );<br>
+ rtems_resource_maximum_per_allocation( CONFIGURE_MAXIMUM_POSIX_THREADS );<br>
<br>
THREAD_INFORMATION_DEFINE(<br>
_Thread,<br>
@@ -2740,7 +2686,7 @@ struct _reent *__getreent(void)<br>
POSIX_SHM_INFORMATION_DEFINE( CONFIGURE_MAXIMUM_POSIX_SHMS );<br>
#endif<br>
<br>
- #if _CONFIGURE_POSIX_THREADS > 0<br>
+ #if CONFIGURE_MAXIMUM_POSIX_THREADS > 0<br>
THREAD_INFORMATION_DEFINE(<br>
_POSIX_Threads,<br>
OBJECTS_POSIX_API,<br>
@@ -2978,12 +2924,10 @@ struct _reent *__getreent(void)<br>
* tasks/threads so there is a smaller set of calls to _Workspace_Allocate<br>
* to analyze.<br>
*/<br>
-#if !defined(CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION)<br>
- #if (CONFIGURE_MAXIMUM_TASKS == 0) && \<br>
- (CONFIGURE_MAXIMUM_POSIX_THREADS == 0) && \<br>
- (CONFIGURE_MAXIMUM_ADA_TASKS == 0)<br>
- #error "CONFIGURATION ERROR: No tasks or threads configured!!"<br>
- #endif<br>
+#if !defined(CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION) \<br>
+ && CONFIGURE_MAXIMUM_TASKS == 0 \<br>
+ && CONFIGURE_MAXIMUM_POSIX_THREADS == 0<br>
+ #error "CONFIGURATION ERROR: No tasks or threads configured!!"<br>
#endif<br>
<br>
#ifndef RTEMS_SCHEDSIM<br>
@@ -3087,6 +3031,14 @@ struct _reent *__getreent(void)<br>
#warning "The CONFIGURE_NUMBER_OF_TERMIOS_PORTS configuration option is obsolete since RTEMS 5.1"<br>
#endif<br>
<br>
+#ifdef CONFIGURE_MAXIMUM_ADA_TASKS<br>
+ #warning "The CONFIGURE_MAXIMUM_ADA_TASKS configuration option is obsolete since RTEMS 5.1"<br>
+#endif<br>
+<br>
+#ifdef CONFIGURE_MAXIMUM_FAKE_ADA_TASKS<br>
+ #warning "The CONFIGURE_MAXIMUM_FAKE_ADA_TASKS configuration option is obsolete since RTEMS 5.1"<br>
+#endif<br>
+<br>
#ifdef CONFIGURE_MAXIMUM_MRSP_SEMAPHORES<br>
#warning "The CONFIGURE_MAXIMUM_MRSP_SEMAPHORES configuration option is obsolete since RTEMS 5.1"<br>
#endif<br>
@@ -3151,6 +3103,10 @@ struct _reent *__getreent(void)<br>
#warning "The CONFIGURE_ENABLE_GO configuration option is obsolete since RTEMS 5.1"<br>
#endif<br>
<br>
+#ifdef CONFIGURE_GNAT_RTEMS<br>
+ #warning "The CONFIGURE_GNAT_RTEMS configuration option is obsolete since RTEMS 5.1"<br>
+#endif<br>
+<br>
#ifdef CONFIGURE_MAXIMUM_GOROUTINES<br>
#warning "The CONFIGURE_MAXIMUM_GOROUTINES configuration option is obsolete since RTEMS 5.1"<br>
#endif<br>
-- <br>
2.16.4<br>
<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><br>
</blockquote></div>