summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove obsolete __RTEMS_HAVE_SYS_CPUSET_H__Joel Sherrill2017-01-111-4/+0
|
* score: Add thread queue enqueue calloutSebastian Huber2016-11-231-0/+3
| | | | | | | Replace the expected thread dispatch disable level with a thread queue enqueue callout. This enables the use of _Thread_Dispatch_direct() in the thread queue enqueue procedure. This avoids impossible exection paths, e.g. Per_CPU_Control::dispatch_necessary is always true.
* rtems: Conditionally define rtems_interrupt_frameSebastian Huber2016-11-181-1/+6
| | | | Update #2808.
* rtems: Add scheduler processor add/removeSebastian Huber2016-11-101-4/+53
| | | | Update #2797.
* score: Simplify _Scheduler_Get_by_id()Sebastian Huber2016-11-091-2/+0
| | | | | | | | | | Avoid dead code in non-SMP configurations. Return scheduler identifier independent of the current processor count of the scheduler via rtems_scheduler_ident(), since this value may change during run-time. Check the processor count in _Scheduler_Set() under scheduler lock protection. Update #2797.
* rtems: Add rtems_task_iterate()Sebastian Huber2016-11-021-0/+32
| | | | Update #2423.
* rtems: Add rtems_task_get_priority()Sebastian Huber2016-09-211-0/+29
| | | | | Update #2556. Update #2784.
* score: Rework thread priority managementSebastian Huber2016-09-211-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* score: Introduce Thread_queue_Lock_contextSebastian Huber2016-09-083-4/+7
| | | | | | Introduce Thread_queue_Lock_context to contain the context necessary for thread queue lock and thread wait lock acquire/release operations to reduce the Thread_Control size.
* score: Fix a release/cancel job race conditionSebastian Huber2016-08-042-6/+11
| | | | | | | | Split up the potential thread priority change in the scheduler release/cancel job operation. Protect the rate monotonic period state with a dedicated SMP lock. This avoids a race condition during _Rate_monotonic_Timeout() while _Rate_monotonic_Cancel() is called on another processor.
* score: Turn thread lock into thread wait lockSebastian Huber2016-07-271-2/+2
| | | | | | | | | 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.
* rtems+bsps/cache: Define cache manager operations for code synchronization ↵Pavel Pisa2016-07-041-0/+29
| | | | | | | | | | | | | | and maximal alignment. There is need for unambiguous named and defined cache function which should be called when code is updated, loaded or is self-modifying. There should be function to obtain maximal cache line length as well. This function can and should be used for allocations which can be used for data and or code and ensures that there are no partial cache lines overlaps on start and end of allocated region.
* rtems: Fix rtems_task_set_scheduler() APISebastian Huber2016-07-011-7/+16
| | | | | | | | | | | Task priorities are only valid within a scheduler instance. The rtems_task_set_scheduler() directive moves a task from one scheduler instance to another using the current priority of the thread. However, the current task priority of the source scheduler instance is undefined in the target scheduler instance. Add a third parameter to specify the priority. Close #2749.
* score: Change Priority_Control to 64-bitSebastian Huber2016-06-241-1/+1
| | | | | | | | A 32-bit Priority_Control limits the uptime to 49 days with a 1ms clock tick in case the EDF scheduler is used. Increase it to 64-bit to enable proper operation of the EDF scheduler, Close 2173.
* score: Introduce map priority scheduler operationSebastian Huber2016-06-221-3/+4
| | | | | | | | | | | Introduce map/unmap priority scheduler operations to map thread priority values from/to the user domain to/from the scheduler domain. Use the map priority operation to validate the thread priority. The EDF schedulers use this new operation to distinguish between normal priorities and priorities obtain through a job release. Update #2173. Update #2556.
* rtems: Rework RTEMS API to SuperCore prioritySebastian Huber2016-06-221-22/+27
| | | | | Use same structure as POSIX API for thread priority conversion to/from SuperCore.
* Avoid <rtems/print.h> in <rtems/rtems/ratemon.h>Sebastian Huber2016-06-221-2/+3
| | | | | This gets rid of the pull in of <stdarg.h> via <rtems.h> via <rtems/rtems/ratemon.h> via <rtems/print.h>.
* rtems: Fix semaphore field nameSebastian Huber2016-05-301-1/+1
|
* rtems: Move MrsP semaphore operationsSebastian Huber2016-05-301-1/+1
| | | | | Move MrsP semaphore operations to a less prominent location. Fix field name.
* score: Rework CORE inherit priority mutexSebastian Huber2016-05-302-8/+1
| | | | | Provide dedicated seize and surrender methods for inherit priority mutexes. This eliminates CORE_mutex_Attributes.
* score: Rework CORE priority ceiling mutexSebastian Huber2016-05-301-0/+1
| | | | | Rework seize and surrender methods to use CORE_ceiling_mutex_Control. This eliminates CORE_mutex_Disciplines.
* score: Add CORE mutex variantsSebastian Huber2016-05-302-1/+7
| | | | | | | | Add CORE_recursive_mutex_Control and CORE_ceiling_mutex_Control to avoid the run-time evaluation of attributes to figure out how a particular mutex methods should behave. Start with the no protocol variants. This eliminates the CORE_MUTEX_DISCIPLINES_FIFO and CORE_MUTEX_DISCIPLINES_PRIORITY disciplines.
* score: Simplify CORE mutexSebastian Huber2016-05-301-0/+1
| | | | | Remove superfluous support for simple binary semaphores. With this we can get rid of the CORE_MUTEX_NESTING_BLOCKS variant.
* score: Add semaphore variantsSebastian Huber2016-05-302-0/+43
|
* rtems: Simplify rtems_semaphore_delete()Sebastian Huber2016-05-301-0/+5
|
* score: Add _Thread_queue_Context_set_MP_callout()Sebastian Huber2016-05-303-33/+9
| | | | | | Add _Thread_queue_Context_set_MP_callout() to simplify _Thread_queue_Context_initialize(). This makes it possible to more easily add additional fields to Thread_queue_Context.
* score: Add Status_Control for all APIsSebastian Huber2016-05-265-105/+16
| | | | | | | | | | | Unify the status codes of the Classic and POSIX API to use the new enum Status_Control. This eliminates the Thread_Control::Wait::timeout_code field and the timeout parameter of _Thread_queue_Enqueue_critical() and _MPCI_Send_request_packet(). It gets rid of the status code translation tables and instead uses simple bit operations to get the status for a particular API. This enables translation of status code constants at compile time. Add _Thread_Wait_get_status() to avoid direct access of thread internal data structures.
* score: Move thread queue MP callout to contextSebastian Huber2016-05-253-11/+38
| | | | | | | | Drop the multiprocessing (MP) dependent callout parameter from the thread queue extract, dequeue, flush and unblock methods. Merge this parameter with the lock context into new structure Thread_queue_Context. This helps to gets rid of the conditionally compiled method call helpers.
* cpukit, testsuite: Add rtems_printf and rtems_printer support.Chris Johns2016-05-251-7/+6
| | | | | | | | | | | | | | | | | | | This change adds rtems_printf and related functions and wraps the RTEMS print plugin support into a user API. All references to the plugin are removed and replaced with the rtems_printer interface. Printk and related functions are made to return a valid number of characters formatted and output. The function attribute to check printf functions has been added to rtems_printf and printk. No changes to remove warrnings are part of this patch set. The testsuite has been moved over to the rtems_printer. The testsuite has a mix of rtems_printer access and direct print control via the tmacros.h header file. The support for begink/endk has been removed as it served no purpose and only confused the code base. The testsuite has not been refactored to use rtems_printf. This is future work.
* Replace *_Get_interrupt_disable() with *_Get()Sebastian Huber2016-05-202-3/+2
| | | | | Uniformly use *_Get() to get an object by identifier with a lock context.
* score: Rename _Objects_Get_local()Sebastian Huber2016-05-207-7/+7
| | | | | | Rename _Objects_Get_local() into _Objects_Get(). Confusions with the previous _Objects_Get() function are avoided since the Objects_Locations parameter is gone.
* rtems: _Semaphore_Get_interrupt_disable()Sebastian Huber2016-05-202-26/+19
| | | | | | Use _Objects_Get_local() for _Semaphore_Get_interrupt_disable() to get rid of the location parameter. Move remote object handling to semaphore MPCI support.
* rtems: _Message_queue_Get_interrupt_disable()Sebastian Huber2016-05-202-17/+60
| | | | | | Use _Objects_Get_local() for _Message_queue_Get_interrupt_disable() to get rid of the location parameter. Move remote object handling to message queue MPCI support.
* rtems: Remove location from _Partition_Get()Sebastian Huber2016-05-202-14/+21
| | | | | Use _Objects_Get_local() for _Partition_Get() to get rid of the location parameter. Move remote object handling to partition MPCI support.
* score: Add per scheduler instance maximum prioritySebastian Huber2016-05-201-0/+1
| | | | | | | | | | | The priority values are only valid within a scheduler instance. Thus, the maximum priority value must be defined per scheduler instance. The first scheduler instance defines PRIORITY_MAXIMUM. This implies that RTEMS_MAXIMUM_PRIORITY and POSIX_SCHEDULER_MAXIMUM_PRIORITY are only valid for threads of the first scheduler instance. Further API/implementation changes are necessary to fix this. Update #2556.
* score: Rename _ISR_Flash() into _ISR_Local_flash()Sebastian Huber2016-05-201-1/+1
| | | | | | This is a preparation to remove the Giant lock. Update #2555.
* score: Rename _ISR_Disable() and _ISR_Enable()Sebastian Huber2016-05-201-2/+2
| | | | | | | | | Rename _ISR_Disable() into _ISR_Local_disable(). Rename _ISR_Enable() into _ISR_Local_enable(). Remove _Debug_Is_owner_of_giant(). This is a preparation to remove the Giant lock. Update #2555.
* score: Rename _ISR_Disable_without_giant()Sebastian Huber2016-05-201-2/+2
| | | | | | | | | Rename _ISR_Disable_without_giant() into _ISR_Local_disable(). Rename _ISR_Enable_without_giant() into _ISR_Local_enable(). This is a preparation to remove the Giant lock. Update #2555.
* rtems: Add rtems_interrupt_lock_interrupt_disableSebastian Huber2016-05-121-0/+13
| | | | Update #2707.
* rtems: Avoid Giant lock for some task operationsSebastian Huber2016-05-121-19/+15
| | | | | | | Avoid Giant lock for rtems_task_set_priority(), rtems_task_suspend() and rtems_task_resume(). Update #2555.
* rtems: Use thread state lock for signalsSebastian Huber2016-05-122-56/+8
|
* score: Introduce thread state lockSebastian Huber2016-05-121-5/+3
| | | | Update #2556.
* mpci: Delete unused region supportSebastian Huber2016-05-122-144/+0
|
* rtems: Avoid Giant lock for signalsSebastian Huber2016-05-063-73/+26
| | | | Update #2555.
* score: Simplify _Thread_Get_interrupt_disable()Sebastian Huber2016-05-041-27/+4
| | | | Remove the object location parameter.
* rtems: Return status in _Event_Surrender()Sebastian Huber2016-05-041-1/+1
|
* rtems: Remove task variablesSebastian Huber2016-05-042-61/+0
| | | | | Update #2494. Update #2555.
* score: Optimize _Objects_Get_local()Sebastian Huber2016-05-024-5/+5
| | | | | Make the interrupt lock context the second parameter to avoid register moves.
* mpci: Make _*_MP_Get_packet() staticSebastian Huber2016-05-028-56/+0
|
* mpci: Make _*_MP_Send_response_packet() staticSebastian Huber2016-05-028-94/+0
|