diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-20 09:49:39 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-21 08:25:31 +0200 |
commit | 413b9e286d89bd0ddb70191df27218439170989b (patch) | |
tree | b364a9ba3e3ceb088fc7e729707c57498b099947 /cpukit/score/include/rtems/score/objectimpl.h | |
parent | score: _Objects_Get_isr_disable() (diff) | |
download | rtems-413b9e286d89bd0ddb70191df27218439170989b.tar.bz2 |
score: Modify _Thread_Dispatch_disable_critical()
Return the current processor to be in line with
_Thread_Disable_dispatch().
Diffstat (limited to 'cpukit/score/include/rtems/score/objectimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/objectimpl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/objectimpl.h b/cpukit/score/include/rtems/score/objectimpl.h index a96dc208ab..cf14c2db5c 100644 --- a/cpukit/score/include/rtems/score/objectimpl.h +++ b/cpukit/score/include/rtems/score/objectimpl.h @@ -674,9 +674,9 @@ _Objects_Release_and_thread_dispatch_disable( ISR_lock_Context *lock_context ) { - Per_CPU_Control *cpu_self = _Per_CPU_Get(); + Per_CPU_Control *cpu_self; - _Thread_Dispatch_disable_critical( cpu_self ); + cpu_self = _Thread_Dispatch_disable_critical(); _Objects_Release_and_ISR_enable( the_object, lock_context ); return cpu_self; |