summaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-26 15:46:04 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-30 09:53:24 +0200
commit10b51ae7396192f311fe106fe870cdce62973f92 (patch)
tree5c25aa1d85d32bcbb0d41e8f122f2c8986679f53 /COPYING
parentscore: Add assert to _Per_CPU_Get() (diff)
downloadrtems-10b51ae7396192f311fe106fe870cdce62973f92.tar.bz2
score: Critical section change in _Thread_Dispatch
If we enter _Thread_Dispatch() then _Thread_Dispatch_disable_level must be zero. Single processor RTEMS assumes that stores of non-zero values to _Thread_Dispatch_disable_level are observed by interrupts as non-zero values. Move the _Thread_Dispatch_set_disable_level( 1 ) out of the first ISR disabled critical section. In case interrupts happen between the _Thread_Dispatch_set_disable_level( 1 ) and _ISR_Disable( level ) then the interrupt will observe a non-zero _Thread_Dispatch_disable_level and will not issue a _Thread_Dispatch() and we can enter the ISR disabled section directly after interrupt processing. This change leads to symmetry between the single processor and SMP configuration.
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions