summaryrefslogtreecommitdiffstats
path: root/rtems_init.c
diff options
context:
space:
mode:
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>