diff options
Diffstat (limited to 'testsuites/tmtests/tm26/task1.c')
-rw-r--r-- | testsuites/tmtests/tm26/task1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuites/tmtests/tm26/task1.c b/testsuites/tmtests/tm26/task1.c index 96859404ac..5d74872ea9 100644 --- a/testsuites/tmtests/tm26/task1.c +++ b/testsuites/tmtests/tm26/task1.c @@ -99,6 +99,10 @@ static void set_thread_dispatch_necessary( bool dispatch_necessary ) _Thread_Dispatch_necessary = dispatch_necessary; + if ( !dispatch_necessary ) { + _Thread_Heir = _Thread_Executing; + } + #if defined( PREVENT_SMP_ASSERT_FAILURES ) _ISR_Enable_without_giant( level ); #endif |