summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* score: Add _Thread_Set_name()Sebastian Huber2017-01-133-0/+15
| | | | | | Add configuration option CONFIGURE_MAXIMUM_THREAD_NAME_SIZE. Update #2858.
* score: Add and use _Thread_Get_name()Sebastian Huber2017-01-131-1/+7
| | | | Update #2858.
* score: Add Thread_queue_Queue::nameSebastian Huber2017-01-132-12/+31
| | | | Update #2858.
* score: Add and use _Objects_Name_to_string()Sebastian Huber2017-01-131-0/+21
| | | | Update #2858.
* score: Remove unused _States_Is_*()Sebastian Huber2017-01-121-153/+0
|
* score: Replace STATES_DELAYINGSebastian Huber2017-01-121-37/+6
| | | | | | | | 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-114-14/+3
|
* score: Improve SMP lock debug supportSebastian Huber2017-01-112-4/+15
| | | | | The CPU index starts with zero. Increment it by one, to allow global SMP locks to reside in the BSS section.
* score: Optimize thread state valuesSebastian Huber2017-01-111-48/+73
|
* score: Add STATES_THREAD_QUEUE_WITH_IDENTIFIERSebastian Huber2017-01-112-14/+15
| | | | | Add thread state bit to identify thread queues that are embedded in an object with identifier.
* score: Delete STATES_WAITING_FOR_BUFFERSebastian Huber2017-01-111-19/+1
|
* score: Format thread state definesSebastian Huber2017-01-111-27/+27
| | | | Specify all 32-bits in a thread state define.
* score: Prevent thread_dispatch_disable_level < 0.Christian Mauderer2016-12-121-0/+2
|
* Add INTERNAL_ERROR_LIBIO_STDERR_FD_OPEN_FAILEDSebastian Huber2016-12-121-1/+2
| | | | Update #2825.
* Add INTERNAL_ERROR_LIBIO_STDOUT_FD_OPEN_FAILEDSebastian Huber2016-12-121-1/+2
| | | | Update #2825.
* Add INTERNAL_ERROR_LIBIO_SEM_CREATE_FAILEDSebastian Huber2016-12-121-1/+2
| | | | Update #2825.
* INTERNAL_ERROR_LIBIO_USER_ENV_KEY_CREATE_FAILEDSebastian Huber2016-12-121-1/+2
| | | | Update #2825.
* score: Introduce _Internal_error()Sebastian Huber2016-12-121-0/+10
|
* Add INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILEDSebastian Huber2016-12-121-1/+2
| | | | Update #2825.
* Add INTERNAL_ERROR_RTEMS_INIT_TASK_CREATE_FAILEDSebastian Huber2016-12-121-1/+2
| | | | Update #2825.
* Rename is_internal to always_set_to_falseSebastian Huber2016-12-121-3/+3
| | | | Update #2825.
* score: Remove fatal is internal indicatorSebastian Huber2016-12-094-12/+5
| | | | | | | | | 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.
* score: Simplify linker set APISebastian Huber2016-12-061-25/+38
| | | | | | | | | | | | | | | | | Resurrect RTEMS_LINKER_SET_BEGIN() and RTEMS_LINKER_SET_END(). Add new macros RTEMS_LINKER_SET_ITEM_COUNT(), RTEMS_LINKER_SET_IS_EMPTY(), and RTEMS_LINKER_SET_FOREACH(). Remove confusing RTEMS_LINKER_SET_ASSIGN_BEGIN() and RTEMS_LINKER_SET_ASSIGN_END(). Fix RTEMS_LINKER_SET_SIZE() to return the size in characters as specified by the documentation. Update #2408. Update #2790.
* score: Initialize thread queue context earlySebastian Huber2016-12-023-6/+2
| | | | | | | | Initialize thread queue context early preferably outside the critical section. Remove implicit _Thread_queue_Context_initialize() from _Thread_Wait_acquire().
* score: Fix debug thread queue context initSebastian Huber2016-12-021-0/+2
| | | | | On ARM Thumb we may have function addresses ending with 0x7f, if we are lucky.
* score: Fix thread queue context initializationSebastian Huber2016-11-282-3/+5
| | | | | Initialize the thread queue context with invalid data in debug configurations to catch missing set up steps.
* score: Optimize _Thread_queue_Enqueue()Sebastian Huber2016-11-243-9/+54
| | | | | | | | | Move thread state for _Thread_queue_Enqueue() to the thread queue context. This reduces the parameter count of _Thread_queue_Enqueue() from five to four (ARM for example has only four function parameter registers). Since the thread state is used after several function calls inside _Thread_queue_Enqueue() this parameter was saved on the stack previously.
* score: Fix interrupt profilingSebastian Huber2016-11-241-0/+6
| | | | | | | | | | Callers of _Thread_Do_dispatch() must have a valid Per_CPU_Control::Stats::thread_dispatch_disabled_instant. Call _Profiling_Outer_most_interrupt_entry_and_exit() with the interrupt stack to not exceed Per_CPU_Control::Interrupt_frame. Update #2751.
* score: Explicitly define the fatal source numbersSebastian Huber2016-11-231-11/+11
| | | | Update #2825.
* score: Uncomment unused internal error codesSebastian Huber2016-11-231-33/+37
| | | | Update #2825.
* posix: Add self-contained pthread spinlockSebastian Huber2016-11-234-210/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Turn pthread_spinlock_t into a self-contained object. On uni-processor configurations, interrupts are disabled in the lock/trylock operations and the previous interrupt status is restored in the corresponding unlock operations. On SMP configurations, a ticket lock is a acquired and released in addition. The self-contained pthread_spinlock_t object is defined by Newlib in <sys/_pthreadtypes.h>. typedef struct { struct _Ticket_lock_Control _lock; __uint32_t _interrupt_state; } pthread_spinlock_t; This implementation is simple and efficient. However, this test case of the Linux Test Project would fail due to call of printf() and sleep() during spin lock ownership: https://github.com/linux-test-project/ltp/blob/master/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_lock/1-2.c There is only limited support for profiling on SMP configurations. Delete CORE spinlock implementation. Update #2674.
* score: Add RTEMS_ALIAS()Sebastian Huber2016-11-231-0/+10
|
* score: Rename _Thread_queue_Enqueue_critical()Sebastian Huber2016-11-234-52/+14
| | | | | Delete unused _Thread_queue_Enqueue() and rename _Thread_queue_Enqueue_critical() to _Thread_queue_Enqueue().
* score: Add thread queue enqueue calloutSebastian Huber2016-11-235-20/+72
| | | | | | | 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.
* score: Robust thread dispatchSebastian Huber2016-11-232-2/+20
| | | | | | | | | | | | On SMP configurations, it is a fatal error to call blocking operating system with interrupts disabled, since this prevents delivery of inter-processor interrupts. This could lead to executing threads which are not allowed to execute resulting in undefined behaviour. The ARM Cortex-M port has a similar problem, since the interrupt state is not a part of the thread context. Update #2811.
* score: Delete obsolete scheduler debug aidSebastian Huber2016-11-232-12/+0
|
* score: Force Per_CPU_Control::executing alignmentSebastian Huber2016-11-231-0/+7
| | | | | | | | This fixes the CPU ports with relaxed alignment restrictions, e.g. type alignment is less than the type size. Close #2822. Close #2823.
* score: Group Per_CPU_Control members by alignmentSebastian Huber2016-11-211-19/+19
| | | | Close #2820.
* score: Optimize self-contained objectsSebastian Huber2016-11-181-0/+19
| | | | Avoid use of the stack for the hot paths.
* score: Constify _MRSP_Get_owner()Sebastian Huber2016-11-181-1/+3
|
* score: Add _ISR_Is_enabled()Sebastian Huber2016-11-181-0/+12
| | | | | | | In contrast to _ISR_Get_level() the _ISR_Is_enabled() function evaluates a level parameter and returns a boolean value. Update #2811.
* score: Allow interrupts during thread dispatchSebastian Huber2016-11-181-1/+12
| | | | | | | | | Use a processor-specific interrupt frame during context switches in case the executing thread is longer executes on the processor and the heir thread is about to start execution. During this period we must not use a thread stack for interrupt processing. Update #2809.
* score: Add Per_CPU_Control::Interrupt_frameSebastian Huber2016-11-181-3/+25
| | | | Update #2809.
* score: Add Per_CPU_Control::isr_dispatch_disableSebastian Huber2016-11-181-1/+13
| | | | Update #2751.
* rtems: Conditionally define rtems_interrupt_frameSebastian Huber2016-11-181-1/+1
| | | | Update #2808.
* score: Add and use _Thread_Dispatch_direct()Sebastian Huber2016-11-182-1/+16
| | | | | | | | | | This function is useful for operations which synchronously block, e.g. self restart, self deletion, yield, sleep. It helps to detect if these operations are called in the wrong context. Since the thread dispatch necessary indicator is not used, this is more robust in some SMP situations. Update #2751.
* score: Remove obsolete definesSebastian Huber2016-11-181-11/+0
| | | | The thread dispatch inline option is no longer used.
* rtems: Add scheduler processor add/removeSebastian Huber2016-11-108-1/+181
| | | | Update #2797.
* score: Add and use Thread_Control::is_idleSebastian Huber2016-11-091-0/+2
| | | | Update #2797.
* score: Rename _Scheduler_AssignmentsSebastian Huber2016-11-092-24/+1
| | | | | | | | Rename _Scheduler_Assignments into _Scheduler_Initial_assignments to make it clear that they may not reflect the run-time scheduler assignment. Update #2797.