summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/inline
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-04-08 18:21:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-04-08 18:21:47 +0000
commitaadb6b0db7a62f6e0e41589be6893ef45d0ebacb (patch)
tree001486943b5d05d617e116bef224924fc2110605 /c/src/exec/score/inline
parent2002-04-08 Chris Johns <ccj@acm.org> (diff)
downloadrtems-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 'c/src/exec/score/inline')
-rw-r--r--c/src/exec/score/inline/rtems/score/userext.inl12
1 files changed, 11 insertions, 1 deletions
diff --git a/c/src/exec/score/inline/rtems/score/userext.inl b/c/src/exec/score/inline/rtems/score/userext.inl
index 9c8cb43731..0d0b19f9ec 100644
--- a/c/src/exec/score/inline/rtems/score/userext.inl
+++ b/c/src/exec/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