summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-08-02 14:46:10 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-08-03 10:33:21 +0200
commit53c84ac5e5d23aa28cbd3c4b0960938e3a963200 (patch)
tree5aebfa88a4870a064ac2a9bd6ccbb6060a79739f
parentd999f865eaef44b887b5c40799572e849ac4ca78 (diff)
downloadrtems-53c84ac5e5d23aa28cbd3c4b0960938e3a963200.tar.bz2
score: Disable interrupts in SMP shutdown
-rw-r--r--cpukit/score/src/smp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c
index e98249be51..26e6b79058 100644
--- a/cpukit/score/src/smp.c
+++ b/cpukit/score/src/smp.c
@@ -287,6 +287,11 @@ long unsigned _SMP_Process_message(
)
{
if ( ( message & SMP_MESSAGE_SHUTDOWN ) != 0 ) {
+ ISR_Level level;
+
+ _CPU_ISR_Disable( level );
+ (void) level;
+
/* Check the state to prevent recursive shutdowns */
if ( _Per_CPU_Get_state( cpu_self ) != PER_CPU_STATE_SHUTDOWN ) {
_Per_CPU_Set_state( cpu_self, PER_CPU_STATE_SHUTDOWN );