diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-11 11:09:13 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-15 07:41:34 +0100 |
commit | 54c3fbd63ec79d0986ecfacb9a37eb5a6fe3d264 (patch) | |
tree | 506dcbae4cd83d0d430b2e907564ffd55b0434eb /cpukit/rtems | |
parent | configure.ac: Do not reference ep1a (diff) | |
download | rtems-54c3fbd63ec79d0986ecfacb9a37eb5a6fe3d264.tar.bz2 |
score: Initialize thread control to zero
This reduces the code size of the thread initialization.
Diffstat (limited to 'cpukit/rtems')
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/asrimpl.h | 2 | ||||
-rw-r--r-- | cpukit/rtems/src/tasks.c | 15 |
2 files changed, 1 insertions, 16 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/asrimpl.h b/cpukit/rtems/include/rtems/rtems/asrimpl.h index 38ee35d83a..bcfb69a558 100644 --- a/cpukit/rtems/include/rtems/rtems/asrimpl.h +++ b/cpukit/rtems/include/rtems/rtems/asrimpl.h @@ -51,7 +51,7 @@ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( RTEMS_INLINE_ROUTINE void _ASR_Create( ASR_Information *asr ) { _ISR_lock_Initialize( &asr->Lock, "ASR" ); - _ASR_Initialize( asr ); + RTEMS_STATIC_ASSERT( RTEMS_DEFAULT_MODES == 0, _ASR_Create_mode_set ); } RTEMS_INLINE_ROUTINE void _ASR_Destroy( ASR_Information *asr ) diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c index c4eca04103..f5ba1c1556 100644 --- a/cpukit/rtems/src/tasks.c +++ b/cpukit/rtems/src/tasks.c @@ -55,21 +55,6 @@ static bool _RTEMS_tasks_Create_extension( api = created->API_Extensions[ THREAD_API_RTEMS ]; _ASR_Create( &api->Signal ); - _Thread_Action_initialize( &api->Signal_action ); -#if !defined(RTEMS_SMP) - created->task_variables = NULL; -#endif - - /* - * We know this is deprecated and don't want a warning on every BSP built. - */ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wdeprecated-declarations" - if ( rtems_configuration_get_notepads_enabled() ) { - for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) - api->Notepads[i] = 0; - } - #pragma GCC diagnostic pop return true; } |