summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/percpujobs.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-29 08:40:17 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-29 09:03:50 +0200
commitc61b855c1a3eb8fc5251c3849a2054c2ea2a259d (patch)
treeefcd188d2d188da56f74c4f43ac4d58305d1c932 /cpukit/score/src/percpujobs.c
parent98a57511b687ce1365140481d0c8cf597b6a5d43 (diff)
downloadrtems-c61b855c1a3eb8fc5251c3849a2054c2ea2a259d.tar.bz2
score: Assert job properties in _Per_CPU_Add_job()
Diffstat (limited to '')
-rw-r--r--cpukit/score/src/percpujobs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/score/src/percpujobs.c b/cpukit/score/src/percpujobs.c
index 5aa2f8eb8b..2e13fdf71f 100644
--- a/cpukit/score/src/percpujobs.c
+++ b/cpukit/score/src/percpujobs.c
@@ -75,6 +75,8 @@ void _Per_CPU_Add_job( Per_CPU_Control *cpu, Per_CPU_Job *job )
{
ISR_lock_Context lock_context;
+ _Assert( job->context != NULL && job->context->handler != NULL );
+
_Atomic_Store_ulong( &job->done, 0, ATOMIC_ORDER_RELAXED );
_Assert( job->next == NULL );