Changeset 73ebf9a in rtems for cpukit/rtems

Timestamp:
05/14/21 12:54:42 (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
98cb84e
Parents:
b9083c55
git-author:
Sebastian Huber <sebastian.huber@…> (05/14/21 12:54:42)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/14/21 14:56:03)
Message:

rtems: Fix task restart within interrupt context

rtems_task_restart() may be called from within interrupt context. So
checking only that the thread to restart is equal to the executing
thread is insufficient to determine a self restart. We have to also
check that no ISR is in progress. Merge _Thread_Restart_other() and
_Thread_Restart_self() into one _Thread_Restart() since they share a lot
of common code.

Close #4412.

(No files)

Note: See TracChangeset for help on using the changeset viewer.