summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-20 08:40:24 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-20 08:40:24 +0200
commitdc6bd8bb665a6517c324e552745524b06fe6eef8 (patch)
tree27faab687abcf37e1a799585839c5e9abf319d52
parent3abc731b22c5200948277bb694bea7d7367994d1 (diff)
score: Fix ISR enable in _Thread_Dispatch_enable()4.11
This bug had probably no effect since the interrupt enable is idempotent on all CPU ports. Close #3497.
-rw-r--r--cpukit/score/include/rtems/score/threaddispatch.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/threaddispatch.h b/cpukit/score/include/rtems/score/threaddispatch.h
index 4ef5538f7e..322682d267 100644
--- a/cpukit/score/include/rtems/score/threaddispatch.h
+++ b/cpukit/score/include/rtems/score/threaddispatch.h
@@ -314,9 +314,8 @@ RTEMS_INLINE_ROUTINE void _Thread_Dispatch_enable( Per_CPU_Control *cpu_self )
} else {
cpu_self->thread_dispatch_disable_level = 0;
_Profiling_Thread_dispatch_enable( cpu_self, 0 );
+ _ISR_Enable_without_giant( level );
}
-
- _ISR_Enable_without_giant( level );
} else {
cpu_self->thread_dispatch_disable_level = disable_level - 1;
}