summaryrefslogtreecommitdiffstats
path: root/rtems_init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-07-08 15:35:13 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-07-08 15:35:13 +0000
commit016859d23af06b5a41ca942d6798900cd3162401 (patch)
tree3914a4dd0e4e4ee699c12208f1107d7ec5d45a89 /rtems_init.c
parent2008-07-08 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadada-examples-016859d23af06b5a41ca942d6798900cd3162401.tar.bz2
2008-07-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.shared: Add -g. Leave temporary files for debug. * rtems_init.c: zero out workspace and heap automatically. This is required by the GNAT run-time.
Diffstat (limited to 'rtems_init.c')
-rw-r--r--rtems_init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rtems_init.c b/rtems_init.c
index cc3699a..179f71e 100644
--- a/rtems_init.c
+++ b/rtems_init.c
@@ -199,6 +199,8 @@ void *POSIX_Init( void *argument )
status = pthread_attr_setstacksize( &attr, stacksize );
assert( !status );
+ attr.schedpolicy = SCHED_RR;
+ attr.schedparam.sched_priority = 122;
status = pthread_create( &thread_id, &attr, start_gnat_main, NULL );
assert( !status );
@@ -246,6 +248,10 @@ void *POSIX_Init( void *argument )
/* Account for any extra task stack size */
#define CONFIGURE_MEMORY_OVERHEAD (GNAT_MAIN_STACKSPACE)
+/* Make sure the C Program Heap and Workspace are zeroed for GNAT */
+#define CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY TRUE
+
#define CONFIGURE_INIT
+void _flush_cache() {}
#include <rtems/confdefs.h>