diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-11-28 10:45:38 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-12-05 18:07:04 +0100 |
commit | 04b5d174a4def46c0f667207119f2f5b83e247b4 (patch) | |
tree | 2c622c7c19c4b242c077a7c8a2e5f7242b77199c /cpukit/rtems | |
parent | score: Add _Chain_Append_if_is_off_chain_*() (diff) | |
download | rtems-04b5d174a4def46c0f667207119f2f5b83e247b4.tar.bz2 |
score: Add API extensions post switch list
Move post switch hook from API_extensions_Control to new
API_extensions_Post_switch_control. Rename
_API_extensions_Run_postswitch() in _API_extensions_Run_post_switch().
Add _API_extensions_Post_switch_list and
_API_extensions_Add_post_switch().
Diffstat (limited to 'cpukit/rtems')
-rw-r--r-- | cpukit/rtems/src/tasks.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c index 2385cb2d22..2d7784f777 100644 --- a/cpukit/rtems/src/tasks.c +++ b/cpukit/rtems/src/tasks.c @@ -213,12 +213,14 @@ static void _RTEMS_tasks_Post_switch_extension( } API_extensions_Control _RTEMS_tasks_API_extensions = { - { NULL, NULL }, #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API) - NULL, /* predriver */ + .predriver_hook = NULL, #endif - _RTEMS_tasks_Initialize_user_tasks, /* postdriver */ - _RTEMS_tasks_Post_switch_extension /* post switch */ + .postdriver_hook = _RTEMS_tasks_Initialize_user_tasks +}; + +API_extensions_Post_switch_control _RTEMS_tasks_API_extensions_post_switch = { + .hook = _RTEMS_tasks_Post_switch_extension }; User_extensions_Control _RTEMS_tasks_User_extensions = { @@ -260,6 +262,7 @@ void _RTEMS_tasks_Manager_initialization(void) _User_extensions_Add_API_set( &_RTEMS_tasks_User_extensions ); _API_extensions_Add( &_RTEMS_tasks_API_extensions ); + _API_extensions_Add_post_switch( &_RTEMS_tasks_API_extensions_post_switch ); /* * Register the MP Process Packet routine. |