diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-14 09:11:07 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-18 07:30:31 +0100 |
commit | d78d5294cd076b48160e12c2f52a940d783b4dac (patch) | |
tree | 15bdd7b4b424b6c4ab49435e71ac6c795bb5a58d /testsuites/sptests/spinternalerror02/init.c | |
parent | acc6d9bf37361c49039d8a3a33ad6cb05b5c38b9 (diff) |
score: Add and use _Thread_Dispatch_direct()
This function is useful for operations which synchronously block, e.g.
self restart, self deletion, yield, sleep. It helps to detect if these
operations are called in the wrong context. Since the thread dispatch
necessary indicator is not used, this is more robust in some SMP
situations.
Update #2751.
Diffstat (limited to 'testsuites/sptests/spinternalerror02/init.c')
-rw-r--r-- | testsuites/sptests/spinternalerror02/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/sptests/spinternalerror02/init.c b/testsuites/sptests/spinternalerror02/init.c index 3de5ef9483..af9d764271 100644 --- a/testsuites/sptests/spinternalerror02/init.c +++ b/testsuites/sptests/spinternalerror02/init.c @@ -36,7 +36,7 @@ static void test_internal_error_text(void) } while ( text != text_last ); rtems_test_assert( - error - 3 == INTERNAL_ERROR_THREAD_QUEUE_ENQUEUE_STICKY_FROM_BAD_STATE + error - 3 == INTERNAL_ERROR_BAD_THREAD_DISPATCH_DISABLE_LEVEL ); } |