diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-02-08 10:47:16 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-02-08 11:20:40 +0100 |
commit | ed24ed4e0ad3494bfa4d070c52fb2c24fb0fb784 (patch) | |
tree | 14884c89f2f2ba788e900140432ce8c6648b2df2 /cpukit/rtems/src/taskmode.c | |
parent | rtems: Use _Per_CPU_Get_executing() (diff) | |
download | rtems-ed24ed4e0ad3494bfa4d070c52fb2c24fb0fb784.tar.bz2 |
Use _Thread_Dispatch_direct()
Use _Thread_Dispatch_direct() for operations that block the executing
thread. This ensures that we get a fatal error
(INTERNAL_ERROR_BAD_THREAD_DISPATCH_DISABLE_LEVEL) if we try to block in
an invalid context, e.g. during system start or an interrupt handler.
Diffstat (limited to 'cpukit/rtems/src/taskmode.c')
-rw-r--r-- | cpukit/rtems/src/taskmode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/rtems/src/taskmode.c b/cpukit/rtems/src/taskmode.c index f25746e492..e16faa53fb 100644 --- a/cpukit/rtems/src/taskmode.c +++ b/cpukit/rtems/src/taskmode.c @@ -143,7 +143,7 @@ rtems_status_code rtems_task_mode( _Thread_State_acquire( executing, &lock_context ); _Scheduler_Schedule( executing ); _Thread_State_release( executing, &lock_context ); - _Thread_Dispatch_enable( cpu_self ); + _Thread_Dispatch_direct( cpu_self ); } return RTEMS_SUCCESSFUL; |