From 53c84ac5e5d23aa28cbd3c4b0960938e3a963200 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 2 Aug 2021 14:46:10 +0200 Subject: score: Disable interrupts in SMP shutdown --- cpukit/score/src/smp.c | 5 +++++ 1 file changed, 5 insertions(+) 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 ); -- cgit v1.2.3