diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-04-08 18:21:47 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-04-08 18:21:47 +0000 |
commit | aadb6b0db7a62f6e0e41589be6893ef45d0ebacb (patch) | |
tree | 001486943b5d05d617e116bef224924fc2110605 /cpukit/score/inline/rtems/score/userext.inl | |
parent | 2002-04-08 Chris Johns <ccj@acm.org> (diff) | |
download | rtems-aadb6b0db7a62f6e0e41589be6893ef45d0ebacb.tar.bz2 |
2001-04-08 Joel Sherrill <joel@OARcorp.com>
* macros/rtems/score/userext.inl: Updated to reflect modifications
to inline version from PR142.
* inline/rtems/score/userext.inl: Cleanup as side-effect of above.
Diffstat (limited to 'cpukit/score/inline/rtems/score/userext.inl')
-rw-r--r-- | cpukit/score/inline/rtems/score/userext.inl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/cpukit/score/inline/rtems/score/userext.inl b/cpukit/score/inline/rtems/score/userext.inl index 9c8cb43731..0d0b19f9ec 100644 --- a/cpukit/score/inline/rtems/score/userext.inl +++ b/cpukit/score/inline/rtems/score/userext.inl @@ -39,6 +39,7 @@ RTEMS_INLINE_ROUTINE void _User_extensions_Add_set ( /* * If a switch handler is present, append it to the switch chain. */ + if ( extension_table->thread_switch != NULL ) { the_extension->Switch.thread_switch = extension_table->thread_switch; _Chain_Append( &_User_extensions_Switches_list, &the_extension->Switch.Node ); @@ -97,7 +98,16 @@ RTEMS_INLINE_ROUTINE void _User_extensions_Add_API_set ( User_extensions_Control *the_extension ) { - _User_extensions_Add_set( the_extension ); + _Chain_Append( &_User_extensions_List, &the_extension->Node ); + + /* + * If a switch handler is present, append it to the switch chain. + */ + + if ( extension_table->thread_switch != NULL ) { + _Chain_Append( + &_User_extensions_Switches_list, &the_extension->Switch.Node ); + } } /*PAGE |