summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use _Thread_Dispatch_direct()Sebastian Huber2018-02-084-5/+5
| | | | | | | 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.
* rtems: Use _Per_CPU_Get_executing()Sebastian Huber2018-02-082-2/+2
|
* score: Introduce new monotonic clockSebastian Huber2018-02-023-3/+3
| | | | | | | | Rename PER_CPU_WATCHDOG_MONOTONIC to PER_CPU_WATCHDOG_TICKS. Add new PER_CPU_WATCHDOG_MONOTONIC which is based on the system uptime (measured by timecounter). Close #3264.
* score: Rename _Watchdog_Realtime_from_*()Sebastian Huber2018-02-022-2/+2
| | | | | | Rename _Watchdog_Realtime_from_*() to _Watchdog_Ticks_from_*(). Update #3264.
* rtems: Fix rtems_task_mode()Sebastian Huber2018-01-191-8/+0
| | | | | | | | | | | A rtems_configuration_is_smp_enabled() inside a !defined( RTEMS_SMP) block makes no sense. Remove !defined( RTEMS_SMP ) conditions. Test tm04 works now again. Update #3000.
* taskmode.c: Ensure all error checking is done before modifying executingJoel Sherrill2017-12-061-3/+31
| | | | | | | Also use single conditional expressions to simplify error checking. Combined, this all resulted in a block of SMP enabled error checking. Updates #3000.
* score: Use self-contained API mutexSebastian Huber2017-12-042-2/+1
| | | | | | | | | | Use a self-contained recursive mutex for API_Mutex_Control. The API mutexes are protected against asynchronous thread cancellation. Add dedicated mutexes for libatomic and TOD. Close #2629. Close #2630.
* score: Simplify global constructionSebastian Huber2017-11-221-20/+4
| | | | Update #3243.
* Fix comments for object lookup error to RTEMS status mapMartin Erik Werner2017-11-211-3/+3
| | | | | | | | | | | | | | | | | | Based on correlation with the enum for object lookup errors in cpukit/score/include/rtems/score/objectimpl.h: typedef enum { OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL, OBJECTS_INVALID_NAME, OBJECTS_INVALID_ADDRESS, OBJECTS_INVALID_ID, OBJECTS_INVALID_NODE } Objects_Name_or_id_lookup_errors; update the comments regarding the object lookup error to status map to match. Signed-off-by: Martin Erik Werner <martin.werner@aacmicrotec.com>
* score: Check thread resource count in timer serverSebastian Huber2017-11-161-1/+7
| | | | | | | The watchdog routines invoked by the timer server may use mutexes for synchronization. Ensure that the resource count of the timer server is zero after each watchdog routine invocation. This helps to detect broken watchdog routines.
* rtems: rtems_clock_get_ticks_per_second()Sebastian Huber2017-10-251-0/+2
| | | | | | | Add macro implementation for rtems_clock_get_ticks_per_second() for C/C++ to avoid the function call overhead. A rtems_clock_get_ticks_per_second() is still provided for language bindings (e.g. Ada).
* score: Move thread queue timeout handlingSebastian Huber2017-10-244-4/+16
| | | | | Update #3117. Update #3182.
* score: Rename _Watchdog_Ticks_from_*()Sebastian Huber2017-10-242-2/+2
| | | | | | | | | | Rename _Watchdog_Ticks_from_*() to _Watchdog_Realtime_from_*(). This highlights that these routines are used for the CLOCK_REALTIME watchdogs (in contrast to CLOCK_MONOTONIC). Update #3117. Update #3182.
* score: Add _Watchdog_Ticks_per_secondSebastian Huber2017-10-241-4/+1
| | | | | | | | This value is frequently used. Avoid the function call overhead and the integer division at run-time. Update #3117. Update #3182.
* score: Add _Thread_Add_timeout_ticks()Sebastian Huber2017-10-242-12/+2
| | | | | | | | Replace _Thread_Timer_insert_monotonic() with _Thread_Add_timeout_ticks(). Update #3117. Update #3182.
* score: Rename _Watchdog_Per_CPU_insert_monotonic()Sebastian Huber2017-10-172-2/+2
| | | | | | | | Rename _Watchdog_Per_CPU_insert_monotonic() in _Watchdog_Per_CPU_insert_ticks(). Update #3117. Update #3182.
* score: Rename watchdog variantsSebastian Huber2017-10-178-10/+10
| | | | | | | | | | | Rename PER_CPU_WATCHDOG_RELATIVE in PER_CPU_WATCHDOG_MONOTONIC to highlight the corresponding POSIX CLOCK_MONOTONIC. Rename PER_CPU_WATCHDOG_ABSOLUTE in PER_CPU_WATCHDOG_REALTIME to highlight the corresponding POSIX CLOCK_REALTIME. Update #3117. Update #3182.
* score: Remove CPU_set_ControlSebastian Huber2017-10-113-3/+0
| | | | | | Use Processor_mask instead. Update #2514.
* score: Add _Thread_queue_Dispatch_disable()Sebastian Huber2017-10-104-13/+4
|
* score: Use struct timespec for TODSebastian Huber2017-10-091-8/+5
| | | | | | | Use the timestamps only for uptime based values. Use struct timespec for the absolute time values (TOD). Update #2740.
* rtems: Fix format warningsSebastian Huber2017-10-061-2/+2
| | | | Update #3111.
* posix: Implement self-contained POSIX mutexSebastian Huber2017-10-051-1/+0
| | | | | | | | POSIX mutexes are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3112.
* posix: Implement self-contained POSIX condvarSebastian Huber2017-10-051-1/+0
| | | | | | | | POSIX condition variables are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3113.
* posix: Implement self-contained POSIX rwlocksSebastian Huber2017-10-051-1/+0
| | | | | | | | POSIX rwlocks are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3115.
* posix: Implement self-contained POSIX barriersSebastian Huber2017-10-051-1/+0
| | | | | | | | POSIX barriers are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3114.
* rtems: Add rtems_scheduler_ident_by_processor_setSebastian Huber2017-07-111-0/+60
| | | | Update #3070.
* rtems: Add rtems_scheduler_ident_by_processor()Sebastian Huber2017-07-111-0/+49
| | | | Update #3069.
* rtems: Fix warningSebastian Huber2017-07-111-2/+0
| | | | Update #3059.
* rtems: Fix rtems_scheduler_remove_processor()Sebastian Huber2017-07-071-4/+8
| | | | | | | | Account for the thread processor affinity and make sure that it is possible to allocate a processor to each thread dedicated to a scheduler instance. Update #3059.
* score: Add processor set to scheduler contextSebastian Huber2017-07-073-9/+11
| | | | | | | Replace the simple processor count with the processor set owned by the scheduler instance. Update #3059.
* ratemonreportstatistics.c: Fix printf() warnings so clean on 32 and 64 bit ↵Joel Sherrill2017-04-241-7/+8
| | | | architectures
* rtems: Fix error return pathSebastian Huber2017-03-281-0/+1
|
* score: Add _Thread_queue_Object_nameSebastian Huber2017-01-311-1/+1
| | | | | | | | | | | | | 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.
* rtems: Fix _Rate_monotonic_Renew_deadline()Kuan-Hsun Chen2017-01-301-4/+7
| | | | | | | | | | | | Prepare a precondition to prevent the potential integer overflow. Remove one redundant parameter in _Rate_monotonic_Renew_deadline(). sptests/sprmsched02: Create A test case for checking the overflow condition of postponed_jobs in rtems_rate_monotonic_period_status. Update #2885.
* Remove rtems_rate_monotonic_postponed_job_count()Kuan-Hsun Chen2017-01-262-14/+2
| | | | | | | | | | | Add a variable named "count" in rtems_rate_monotonic_period_status structure. Revise rtems_rate_monotonic_get_status() for the postponed job count. sptests/sp69: Add in the verification of the postponed job count for rtems_rate_monotonic_get_status(). Update #2795.
* rtems: rtems_rate_monotonic_postponed_job_count()Sebastian Huber2017-01-241-12/+7
| | | | | | Use proper locking in SMP configurations. Update #2795.
* rtems: Fix _Rate_monotonic_Release_postponed_job()Sebastian Huber2017-01-241-5/+3
| | | | | | Use proper locking in SMP configurations. Update #2795.
* rtems: Fix _Rate_monotonic_Renew_deadline()Sebastian Huber2017-01-242-32/+21
| | | | | | | Make _Rate_monotonic_Renew_deadline() static and use proper locking in SMP configurations. Update #2795.
* classic: adjust names of RM postponed job functionsGedare Bloom2017-01-131-7/+12
| | | | closes #2795
* Enhancement of the RMS manager for the overrun handling.Kuan-Hsun Chen2017-01-132-9/+130
| | | | | | | | | | | | | | | Three additional functions: rtems_rate_monotonic_postponed_job_count, _Rate_monotonic_Renew_deadline, and _Rate_monotonic_Release_postponed_job. Four refined functions: _Rate_monotonic_Activate, _Rate_monotonic_Block_while_expired, rtems_rate_monotonic_period, _Rate_monotonic_Timeout. Rate_monotonic_Control contains one counter for counting the postponed jobs and one for recording the recent deadline. Update #2795.
* posix: shared memory supportGedare Bloom2017-01-131-0/+1
| | | | | | | | | Add POSIX shared memory manager (Shm). Includes a hook-based approach for the backing memory storage that defaults to the Workspace, and a test is provided using the heap. A test is also provided for the basic use of mmap'ing a shared memory object. This test currently fails at the mmap stage due to no support for mmap.
* rtems: Use header file for rtems_object_get_name()Sebastian Huber2017-01-121-10/+1
|
* score: Replace STATES_DELAYINGSebastian Huber2017-01-121-1/+1
| | | | | | | | Replace STATES_DELAYING with STATES_WAITING_FOR_TIME. There is no need for separate timeout thread states. The Thread_Control::Timer::header and Watchdog_Control::cpu members can be used to figure out the kind of timeout.
* Remove obsolete __RTEMS_HAVE_SYS_CPUSET_H__Joel Sherrill2017-01-113-10/+0
|
* score: Introduce _Internal_error()Sebastian Huber2016-12-121-8/+2
|
* Add INTERNAL_ERROR_RTEMS_INIT_TASK_CREATE_FAILEDSebastian Huber2016-12-121-2/+6
| | | | Update #2825.
* score: Remove fatal is internal indicatorSebastian Huber2016-12-091-2/+1
| | | | | | | | | The fatal is internal indicator is redundant since the fatal source and error code uniquely identify a fatal error. Keep the fatal user extension is internal parameter for backward compatibility and set it to false always. Update #2825.
* rtems: Use _Thread_Dispatch_direct()Sebastian Huber2016-12-022-2/+2
| | | | Update #2797.
* rtems: Fix rtems_scheduler_add_processor()Sebastian Huber2016-12-021-4/+1
| | | | | | Fix thread dispatch profiling of rtems_scheduler_add_processor(). Update #2797.
* score: Initialize thread queue context earlySebastian Huber2016-12-023-1/+3
| | | | | | | | Initialize thread queue context early preferably outside the critical section. Remove implicit _Thread_queue_Context_initialize() from _Thread_Wait_acquire().