Unexpected rtems_task_restart() behaviour if called from within interrrupt context
Original author: sebastian.huber
In rtems_task_restart() there is a check if the executing thread is restarted. However, in interrupt context, this simple check results in an internal error INTERNAL_ERROR_BAD_THREAD_DISPATCH_DISABLE_LEVEL if the executing thread is restarted. Check also if an ISR is in progress to make sure the thread restart works within interrupt context.
Edited by Amar Takhar