summaryrefslogtreecommitdiff
path: root/cpukit/score/src/threadinitialize.c (follow)
AgeCommit message (Collapse)Author
2020-02-25score: Fix label defined but not used warningSebastian Huber
Update #3835.
2020-02-25score: _Scheduler_Is_non_preempt_mode_supported()Sebastian Huber
If the non-preempt mode for threads is supported depends on the scheduler implementation. Add _Scheduler_Is_non_preempt_mode_supported() to indicate this. Update #3876.
2020-02-25score: Add _SMP_Need_inter_processor_interrupts()Sebastian Huber
Test for the proper system condition instead of using the rtems_configuration_is_smp_enabled() workaround. Update #3876.
2020-02-12score: Simplify _Thread_Initialize()Sebastian Huber
Allocate new thread queue heads during objects information extend. This removes an error case and the last dependency on the workspace in _Thread_Initialize(). Update #3835.
2020-02-12score: Move thread stack allocationSebastian Huber
Move thread stack allocation to caller side of _Thread_Initialize(). Update #3835.
2020-02-12score: Add _Stack_Extend_size()Sebastian Huber
Update #3835.
2020-02-12score: Add Thread_ConfigurationSebastian Huber
Add the Thread_Configuration structure to reduce the parameter count of _Thread_Initialize(). This makes it easier to add more parameters in the future. It simplifies the code generation since most architectures do not have that many registers available for function parameters. Update #3835.
2020-02-12score: Simplify TLS area allocationSebastian Huber
Use the stack area to allocate the TLS area. Update #3835.
2020-02-12score: Simplify FP context allocationSebastian Huber
Use the stack area to allocate the FP context. This considerably simplifies the application configuration since the task count no longer influences the configured work space size. With this change the stack space size is overestimated since an FP context for each thread is accounted. Memory constraint applications can use the stack size for fine tuning. Update #3835.
2020-02-12score: Simplify thread stack freeSebastian Huber
Update #3835.
2020-02-12score: Simplify thread stack allocationSebastian Huber
Remove superfluous Thread_Control::Start::stack member. Update #3835.
2019-04-04doxygen: Rename Score* groups in RTEMSScore*Sebastian Huber
Update #3706
2019-01-09Adjust interrupt mode tests for some CPU portsSebastian Huber
In case the robust thread dispatch is enabled by the CPU port, then the interrupt level must not be changed through the task mode. Update #3000.
2019-01-09Separate task mode checksSebastian Huber
Update #3000.
2018-12-14score: Static Objects_Information initializationSebastian Huber
Statically allocate the objects information together with the initial set of objects either via <rtems/confdefs.h>. Provide default object informations with zero objects via librtemscpu.a. This greatly simplifies the workspace size estimate. RTEMS applications which do not use the unlimited objects option are easier to debug since all objects reside now in statically allocated objects of the right types. Close #3621.
2018-12-07score: Rename Objects_Information::sizeSebastian Huber
Rename Objects_Information::size to Objects_Information::object_size. Change its type from size_t to uint16_t and move it to reduce the size of Objects_Information. Update #3621.
2018-09-10score: Add thread pin/unpin supportSebastian Huber
Add support to temporarily pin a thread to its current processor. This may be used to access per-processor data structures in critical sections with enabled thread dispatching, e.g. a pinned thread is allowed to block. Update #3508.
2017-10-11score: Remove CPU_set_ControlSebastian Huber
Use Processor_mask instead. Update #2514.
2017-07-07score: Introduce _SMP_Get_online_processors()Sebastian Huber
Update #3059.
2017-07-07score: Move processor affinity to Thread_ControlSebastian Huber
Update #3059.
2017-02-15score: Fix warningSebastian Huber
2017-01-31score: Add _Thread_queue_Object_nameSebastian Huber
Add the special thread queue name _Thread_queue_Object_name to mark thread queues embedded in an object with identifier. Using the special thread state STATES_THREAD_QUEUE_WITH_IDENTIFIER is not reliable for this purpose since the thread wait information and thread state are protected by different SMP locks in separate critical sections. Remove STATES_THREAD_QUEUE_WITH_IDENTIFIER. Add and use _Thread_queue_Object_initialize(). Update #2858.
2017-01-31score: Fix _Thread_Initialize()Sebastian Huber
2017-01-26score: Delete _CPU_Context_Fp_start()Sebastian Huber
Since the FP area pointer is passed by reference in _CPU_Context_Initialize_fp() the optional FP area adjustment via _CPU_Context_Fp_start() is superfluous. It is also wrong with respect to memory management, e.g. pointer passed to _Workspace_Free() may be not the one returned by _Workspace_Allocate(). Close #1400.
2016-11-18score: Restrict task interrupt level to 0 on SMPSebastian Huber
Update #2811.
2016-11-10rtems: Add scheduler processor add/removeSebastian Huber
Update #2797.
2016-11-02score: Introduce Thread_Scheduler_control::homeSebastian Huber
Replace Thread_Scheduler_control::control and Thread_Scheduler_control::own_control with new Thread_Scheduler_control::home. Update #2556.
2016-11-02score: Delete Thread_Scheduler_control::own_nodeSebastian Huber
Update #2556.
2016-11-02score: Delete Thread_Scheduler_control::nodeSebastian Huber
Update #2556.
2016-11-02score: Delete _Scheduler_Ask_for_help_if_necessarySebastian Huber
Delete Thread_Control::Resource_node. Update #2556.
2016-11-02score: Add scheduler node requestsSebastian Huber
Add the ability to add/remove scheduler nodes to/from the set of scheduler nodes available to the schedulers for a particular thread. Update #2556.
2016-11-02score: Add thread scheduler lockSebastian Huber
Update #2556.
2016-09-27score: Simplify ISR lock nameSebastian Huber
2016-09-21score: Manage scheduler nodes via thread queuesSebastian Huber
Update #2556.
2016-09-21score: Add scheduler node table for each threadSebastian Huber
Update #2556.
2016-09-21score: Rework thread priority managementSebastian Huber
Add priority nodes which contribute to the overall thread priority. The actual priority of a thread is now an aggregation of priority nodes. The thread priority aggregation for the home scheduler instance of a thread consists of at least one priority node, which is normally the real priority of the thread. The locking protocols (e.g. priority ceiling and priority inheritance), rate-monotonic period objects and the POSIX sporadic server add, change and remove priority nodes. A thread changes its priority now immediately, e.g. priority changes are not deferred until the thread releases its last resource. Replace the _Thread_Change_priority() function with * _Thread_Priority_perform_actions(), * _Thread_Priority_add(), * _Thread_Priority_remove(), * _Thread_Priority_change(), and * _Thread_Priority_update(). Update #2412. Update #2556.
2016-09-07score: Remove superfluous SMP debug supportSebastian Huber
This information turned out to be useless in the last couple of months.
2016-08-08score: Add debug support to red-black treesSebastian Huber
This helps to detect double insert and extract errors.
2016-08-03score: Fix and simplify thread wait locksSebastian Huber
There was a subtile race condition in _Thread_queue_Do_extract_locked(). It must first update the thread wait flags and then restore the default thread wait state. In the previous implementation this could lead under rare timing conditions to an ineffective _Thread_Wait_tranquilize() resulting to a corrupt system state. Update #2556.
2016-07-27score: Turn thread lock into thread wait lockSebastian Huber
The _Thread_Lock_acquire() function had a potentially infinite run-time due to the lack of fairness at atomic operations level. Update #2412. Update #2556. Update #2765.
2016-07-01score: Change scheduler node init and destroySebastian Huber
Provide the scheduler node to initialize or destroy to the corresponding operations. This makes it possible to have more than one scheduler node per thread.
2016-06-30score: Fix thread lock on SMP configurationsSebastian Huber
2016-06-22score: Add thread priority to scheduler nodesSebastian Huber
The thread priority is manifest in two independent areas. One area is the user visible thread priority along with a potential thread queue. The other is the scheduler. Currently, a thread priority update via _Thread_Change_priority() first updates the user visble thread priority and the thread queue, then the scheduler is notified if necessary. The priority is passed to the scheduler via a local variable. A generation counter ensures that the scheduler discards out-of-date priorities. This use of a local variable ties the update in these two areas close together. For later enhancements and the OMIP locking protocol implementation we need more flexibility. Add a thread priority information block to Scheduler_Node and synchronize priority value updates via a sequence lock on SMP configurations. Update #2556.
2016-05-20score: Simplify _Thread_Life_action_handler()Sebastian Huber
Use _Thread_Change_life_locked() to avoid duplicated code. Avoid Giant lock in _Thread_Life_action_handler(). Update #2555. Update #2626.
2016-05-12score: Introduce thread state lockSebastian Huber
Update #2556.
2016-05-02score: Delete __RTEMS_STRICT_ORDER_MUTEX__Sebastian Huber
Remove support for strict order mutexes. Close #2124.
2016-03-29score: Fix multiprocessing thread proxiesSebastian Huber
We must provide thread queue heads for the thread wait information for each thread proxy (thread queue heads were introduced by d7665823b208daefb6855591d808e1f3075cedcb). The thread proxy must be allocated before the enqueue operation.
2016-03-18posix: Use per-thread lookup tree for POSIX KeysSebastian Huber
Yields higher performance on SMP systems. Close #2625.
2016-03-04score: Replace watchdog handler implementationSebastian Huber
Use a red-black tree instead of delta chains. Close #2344. Update #2554. Update #2555. Close #2606.
2015-12-15score: Initialize thread control to zeroSebastian Huber
This reduces the code size of the thread initialization.