[rtems commit] score: Disable interrupts in SMP shutdown
Sebastian Huber
sebh at rtems.org
Wed Aug 4 08:07:04 UTC 2021
Module: rtems
Branch: master
Commit: 53c84ac5e5d23aa28cbd3c4b0960938e3a963200
Changeset: http://git.rtems.org/rtems/commit/?id=53c84ac5e5d23aa28cbd3c4b0960938e3a963200
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Aug 2 14:46:10 2021 +0200
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 e98249b..26e6b79 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 );
More information about the vc
mailing list