summaryrefslogtreecommitdiffstats
path: root/testsuites/tmtests/tm26/task1.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-04 13:19:11 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-07 07:39:41 +0100
commitedbd43c6132ddb0644bd302c6017b52168e57857 (patch)
tree7b2e743bc285a57ccfae259bda9de42f21d4dc51 /testsuites/tmtests/tm26/task1.c
parentscore: Add <rtems/score/cpuimpl.h> (diff)
downloadrtems-edbd43c6132ddb0644bd302c6017b52168e57857.tar.bz2
score: Prevent assignment to _Thread_Executing
Diffstat (limited to 'testsuites/tmtests/tm26/task1.c')
-rw-r--r--testsuites/tmtests/tm26/task1.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/testsuites/tmtests/tm26/task1.c b/testsuites/tmtests/tm26/task1.c
index 173cf7f2c2..9d157e9fcf 100644
--- a/testsuites/tmtests/tm26/task1.c
+++ b/testsuites/tmtests/tm26/task1.c
@@ -123,17 +123,7 @@ static void set_thread_heir( Thread_Control *thread )
static void set_thread_executing( Thread_Control *thread )
{
-#if defined( PREVENT_SMP_ASSERT_FAILURES )
- ISR_Level level;
-
- _ISR_Local_disable( level );
-#endif
-
- _Thread_Executing = thread;
-
-#if defined( PREVENT_SMP_ASSERT_FAILURES )
- _ISR_Local_enable( level );
-#endif
+ _Per_CPU_Get_snapshot()->executing = thread;
}
static void thread_resume( Thread_Control *thread )