summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: Use flexible-array member for C99 and laterSebastian Huber2020-08-041-1/+5
| | | | | | | This addresses compiler warnings like this: warning: array subscript 0 is outside the bounds of an interior zero-length array 'abc[0]' [-Wzero-length-bounds]
* score: Add RTEMS_WEAKSebastian Huber2020-07-241-0/+12
| | | | Update #4032.
* score: Improve _Thread_Start() descriptionSebastian Huber2020-07-211-6/+30
|
* score: Remove deprecated ThreadSebastian Huber2020-07-141-6/+0
| | | | | | This type was deprecated in RTEMS 5.1. Close #3991.
* rtems: Remove deprecated proc_ptr definitionSebastian Huber2020-07-141-7/+0
| | | | Close #3586.
* rtems: Remove support for RTEMS_DEPRECATED_TYPESSebastian Huber2020-07-141-6/+0
| | | | Close #3584.
* rtems: Remove deprecated rtems_extensionSebastian Huber2020-07-141-2/+0
| | | | | | This type was deprecated in RTEMS 5.1. Close #3988.
* rtems: Move declartion of _RTEMS_versionSebastian Huber2020-07-141-0/+10
| | | | Close #3978.
* score: Return status in _TOD_Set()Sebastian Huber2020-04-141-15/+10
| | | | Update #3949.
* score: Delete RTEMS_DECLARE_GLOBAL_SYMBOL()Sebastian Huber2020-04-081-20/+0
| | | | | | Delete unused RTEMS_DECLARE_GLOBAL_SYMBOL(). Update #3799.
* score: Add and use RTEMS_SYMBOL_NAME()Sebastian Huber2020-04-081-10/+27
| | | | Update #3799.
* score: Document _TLS_AlignmentSebastian Huber2020-03-231-0/+10
|
* score: Fix size of TLS_Thread_control_blockSebastian Huber2020-03-231-1/+3
| | | | | On most architectures, the size of the thread-local storage TCB must be 8 bytes. Fix the definition for 64-bit targets.
* score: Add _IO_Base64()Sebastian Huber2020-03-161-1/+26
| | | | Update #3904.
* score: Fix context switch extensions (SMP)Sebastian Huber2020-02-282-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In uniprocessor and SMP configurations, the context switch extensions were called during _Thread_Do_dispatch(): void _Thread_Do_dispatch( Per_CPU_Control *cpu_self, ISR_Level level ) { Thread_Control *executing; executing = cpu_self->executing; ... do { Thread_Control *heir; heir = _Thread_Get_heir_and_make_it_executing( cpu_self ); ... _User_extensions_Thread_switch( executing, heir ); ... _Context_Switch( &executing->Registers, &heir->Registers ); ... } while ( cpu_self->dispatch_necessary ); ... } In uniprocessor configurations, this is fine and the context switch extensions are called for all thread switches except the very first thread switch to the initialization thread. However, in SMP configurations, the context switch may be invalidated and updated in the low-level _Context_Switch() routine. See: https://docs.rtems.org/branches/master/c-user/symmetric_multiprocessing_services.html#thread-dispatch-details In case such an update happens, a thread will execute on the processor which was not seen in the previous call of the context switch extensions. This can confuse for example event record consumers which use events generated by a context switch extension. Fixing this is not straight forward. The context switch extensions call must move after the low-level context switch. The problem here is that we may end up in _Thread_Handler(). Adding the context switch extensions call to _Thread_Handler() covers now also the thread switch to the initialization thread. We also have to save the last executing thread (ancestor) of the processor. Registers or the stack cannot be used for this purpose. We have to add it to the per-processor information. Existing extensions may be affected, since now context switch extensions use the stack of the heir thread. The stack checker is affected by this. Calling the thread switch extensions in the low-level context switch is difficult since at this point an intermediate stack is used which is only large enough to enable servicing of interrupts. Update #3885.
* config: Remove CONFIGURE_DISABLE_SMP_CONFIGURATIONSebastian Huber2020-02-251-13/+0
| | | | | | | | | | The CONFIGURE_DISABLE_SMP_CONFIGURATION configuration option and rtems_configuration_is_smp_enabled() were added during the SMP support development cycle as a workaround to fix some testsuite failures in SMP configurations. All use cases were replaced with tests for specific conditions. The configuration option and test macro were undocumented. Close #3876.
* score: _Scheduler_Is_non_preempt_mode_supported()Sebastian Huber2020-02-252-0/+26
| | | | | | | | 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.
* score: Add _SMP_Need_inter_processor_interrupts()Sebastian Huber2020-02-251-0/+15
| | | | | | | Test for the proper system condition instead of using the rtems_configuration_is_smp_enabled() workaround. Update #3876.
* libio: Add POSIX user environment pointer to TCBSebastian Huber2020-02-252-1/+8
| | | | | | | | | | The IO library used a POSIX key to store an optional POSIX user environment pointer. This pulled in the POSIX keys support in every application configuration. Add a user environment pointer to the thread control block (TCB) instead. Applications which do not need the POSIX user environment will just get an overhead of one pointer per thread. Close #3882.
* config: Add _SMP_Is_enabledSebastian Huber2020-02-251-0/+13
| | | | | | | | | | Move the is SMP enabled configuration constant out of the configuration table. Since this was the last configuration constant in rtems_configuration_table, remove this type. Update #3875.
* config: Add _SMP_Processor_configure_maximumSebastian Huber2020-02-251-0/+13
| | | | | | | Move the processor maximum configuration constant out of the configuration table. Update #3875.
* config: Add _Workspace_Is_unifiedSebastian Huber2020-02-251-0/+8
| | | | | | | | | Move the unified workspace configuration constant out of the configuration table. Provide a default definition of the unified workspace constant. Update #3875.
* config: Add _Workspace_SizeSebastian Huber2020-02-251-0/+66
| | | | | | | Move the workspace size configuration constant out of the configuration table. Update #3875.
* config: Add _Thread_Idle_bodySebastian Huber2020-02-251-0/+13
| | | | | | | | | Move the idle thread body configuration constant out of the configuration table. Provide a default definition of the idle thread body constant. Update #3875.
* config: Add _Thread_Idle_stack_sizeSebastian Huber2020-02-251-0/+65
| | | | | | | | | | Move the idle thread stack size configuration constant out of the configuration table. Add THREAD_IDLE_STACK_SIZE_DEFAULT and use it to provide a default definition of the idle thread stack size constant. Update #3875.
* config: Add _Watchdog_Ticks_per_timesliceSebastian Huber2020-02-251-0/+13
| | | | | | | | | | Move the ticks per timeslice configuration constant out of the configuration table. Add WATCHDOG_TICKS_PER_TIMESLICE_DEFAULT and use it to provide a default definition of the watchdog ticks per timeslice constant. Update #3875.
* config: Add _Watchdog_Microseconds_per_tickSebastian Huber2020-02-251-0/+8
| | | | | | | | | | Move the microseconds per tick configuration constant out of the configuration table. Add WATCHDOG_MICROSECONDS_PER_TICK_DEFAULT and use it to provide a default definition of the watchdog ticks constants. Update #3875.
* score: Remove unused _Workspace_Allocate_aligned()Sebastian Huber2020-02-171-11/+0
|
* objectdata.h, objectimpl.h: Change structure member from free to deallocateJoel Sherrill2020-02-142-3/+3
| | | | | | | | Without this change, rtems-libbsd does not compile. A macro turns free into bsd_free. Also the use of a standard library element as a program identifier is a violation of a MISRA rule. Turns out that was a good rule. :)
* score: Simplify _Thread_Initialize()Sebastian Huber2020-02-121-1/+9
| | | | | | | | 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.
* score: Add _Objects_Allocate_with_extend()Sebastian Huber2020-02-121-0/+32
| | | | Update #3835.
* score: Add _Objects_Activate_unlimited()Sebastian Huber2020-02-121-0/+30
| | | | Update #3835.
* score: Add _Freechain_Extend()Sebastian Huber2020-02-121-0/+18
| | | | Update #3835.
* score: Add _Freechain_Pop()Sebastian Huber2020-02-121-0/+12
| | | | Update #3835.
* score: Add _Freechain_Is_empty()Sebastian Huber2020-02-121-0/+12
| | | | Update #3835.
* score: _Objects_Extend_information()Sebastian Huber2020-02-121-1/+4
| | | | | | | Return block index in _Objects_Extend_information(). This allows to customize the objects information extend. Update #3835.
* score: Inline _Objects_Namespace_remove_u32()Sebastian Huber2020-02-121-17/+21
| | | | | | This function is simple enough to be inlined. Update #3835.
* score: Split up objects freeSebastian Huber2020-02-123-49/+97
| | | | | | | | Split up the different objects free methods into separate functions. This helps to avoid a dependency on the workspace in case no objects or a static set of objects is configured. Update #3835.
* score: Split up objects allocationSebastian Huber2020-02-123-21/+91
| | | | | | | | | | | Split up the different objects allocation methods into separate functions. This helps to avoid a dependency on the workspace in case no objects or a static set of objects is configured. Change license to BSD-2-Clause according to file histories. Update #3053. Update #3835.
* score: Add _Objects_Free_objects_block()Sebastian Huber2020-02-121-0/+11
| | | | | | | This is a preparation to allow a customization of the objects information extend. Update #3835.
* score: Statically allocate idle/MPCI stacksSebastian Huber2020-02-122-0/+14
| | | | | | | Place idle and MPCI stacks into extra linker sections. This can be optionally used by applications to control the placement of the stacks. Update #3835.
* score: Move thread stack allocationSebastian Huber2020-02-122-4/+7
| | | | | | Move thread stack allocation to caller side of _Thread_Initialize(). Update #3835.
* score: Add _Stack_Extend_size()Sebastian Huber2020-02-121-0/+27
| | | | Update #3835.
* score: Add Thread_ConfigurationSebastian Huber2020-02-121-23/+60
| | | | | | | | | 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.
* score: Split stack allocator configurationSebastian Huber2020-02-121-0/+52
| | | | | | This allows the linker garbage collection to perform its work. Update #3835.
* score: Simplify TLS area allocationSebastian Huber2020-02-123-25/+15
| | | | | | Use the stack area to allocate the TLS area. Update #3835.
* score: Simplify FP context allocationSebastian Huber2020-02-122-4/+19
| | | | | | | | | | | 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.
* score: Simplify thread stack freeSebastian Huber2020-02-123-15/+14
| | | | Update #3835.
* score: Simplify thread stack allocationSebastian Huber2020-02-123-19/+10
| | | | | | Remove superfluous Thread_Control::Start::stack member. Update #3835.
* config: Add CONFIGURE_DIRTY_MEMORYSebastian Huber2020-02-061-0/+5
| | | | | | | Replace the BSP_DIRTY_MEMORY BSP option with a CONFIGURE_DIRTY_MEMORY configuration option. Update #3843.