summaryrefslogtreecommitdiffstats
path: root/cpukit/score/inline/rtems/score/userext.inl
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/inline/rtems/score/userext.inl')
-rw-r--r--cpukit/score/inline/rtems/score/userext.inl3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/inline/rtems/score/userext.inl b/cpukit/score/inline/rtems/score/userext.inl
index 0d0b19f9ec..21adea0214 100644
--- a/cpukit/score/inline/rtems/score/userext.inl
+++ b/cpukit/score/inline/rtems/score/userext.inl
@@ -104,7 +104,8 @@ RTEMS_INLINE_ROUTINE void _User_extensions_Add_API_set (
* If a switch handler is present, append it to the switch chain.
*/
- if ( extension_table->thread_switch != NULL ) {
+ if ( the_extension->Callouts.thread_switch != NULL ) {
+ the_extension->Switch.thread_switch = the_extension->Callouts.thread_switch;
_Chain_Append(
&_User_extensions_Switches_list, &the_extension->Switch.Node );
}