diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-03 07:28:15 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-04 15:15:10 +0200 |
commit | 550616e528235e6077ae01fe91dddb1e4e7386d2 (patch) | |
tree | e6bbeeaa08ce05560a4b7ec98f6038a026fc3b18 | |
parent | newlib01: Use fopen() instead of freopen() (diff) | |
download | rtems-550616e528235e6077ae01fe91dddb1e4e7386d2.tar.bz2 |
score: Add assert to _Thread_Dispatch()
Update #3060.
-rw-r--r-- | cpukit/score/src/threaddispatch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/score/src/threaddispatch.c b/cpukit/score/src/threaddispatch.c index 39cf80d243..9cd1e294ed 100644 --- a/cpukit/score/src/threaddispatch.c +++ b/cpukit/score/src/threaddispatch.c @@ -248,6 +248,7 @@ void _Thread_Dispatch( void ) if ( cpu_self->dispatch_necessary ) { _Profiling_Thread_dispatch_disable( cpu_self, 0 ); + _Assert( cpu_self->thread_dispatch_disable_level == 0 ); cpu_self->thread_dispatch_disable_level = 1; _Thread_Do_dispatch( cpu_self, level ); } else { |