summaryrefslogtreecommitdiffstats
path: root/cpukit (follow)
Commit message (Collapse)AuthorAgeFilesLines
* libtest: Add T_get_thread_timer_state()Sebastian Huber2021-02-082-1/+39
|
* libcsupport: Have greedy allocations use consume extended memoryChris Johns2021-02-081-0/+13
| | | | | | | - Call the heap extend handler until all memory has been requested. Closes #3982
* libcsupport: Add no_regular_file_mknod as a mount option to the mount tableChris Johns2021-02-082-5/+9
| | | | | | | | | | | | | - Add the bool flag no_regular_file_mknod to the mount table so a file system can indicate creating regular files is not done by use the mknod handler. The file system will handle creating a file node in the open handler. - Note, the mount option is an enum which means there is only one exclusive option supported. As a result no encapsulation is provided and file systems need to set no_regular_file_mknod directly. Closes #4222
* score: Add barrier thread queue operationsSebastian Huber2021-02-063-4/+40
| | | | | | | This fixes a missing decrement of the number of waiting threads during a barrier wait timeout. Close #4230.
* score: Make FIFO thread queue ops publicSebastian Huber2021-02-063-8/+144
| | | | Update #4230.
* score: Constify Thread_queue_First_operationSebastian Huber2021-02-062-12/+13
| | | | Update #4230.
* rtems: Clarify partition manager documentationSebastian Huber2021-02-031-44/+124
| | | | | | | Unify the wording across similar directives of other managers. Add "Constraints" paragraph. Update #3993.
* score: _Objects_Build_name() signed/unsigned charSebastian Huber2021-02-031-4/+4
| | | | | | | Change _Objects_Build_name() so that the result is independent of the signedness of char. Close #4228.
* rtems: Avoid duplicated implemenationSebastian Huber2021-02-031-2/+7
| | | | | Use the rtems_clock_get_ticks_per_second() macro to implement the rtems_clock_get_ticks_per_second() function.
* rtems: Rework object services APISebastian Huber2021-02-039-156/+264
| | | | | | | | | Add a "Constraints" paragraph to the documentation. Provide prototypes for programming language bindings. Use the macro implementation to implement the corresponding functions. Update #3993.
* score: Define _Assert() for static analysis runsSebastian Huber2021-02-012-2/+13
| | | | | | | | | The goal is to reduce false positive NULL_RETURNS, PW.NORETURN_FUNCTION_DOES_RETURN, PW.SET_BUT_NOT_USED, UNUSED_VALUE, etc. issues produced by Coverity. Define RTEMS_STATIC_ANALYSIS if a static analysis run by Coverity is performed.
* libtest: Remove double definitionSebastian Huber2021-02-011-1/+0
|
* score: Clarify thread life state documentationSebastian Huber2021-02-011-2/+2
|
* score: Document Thread_Life_stateSebastian Huber2021-02-011-3/+40
|
* nios2: Allow ISR nesting in dispatch variantSebastian Huber2021-02-013-174/+16
| | | | | | Rename _Nios2_ISR_Dispatch_with_shadow_non_preemptive() in _Nios2_ISR_Dispatch_with_shadow_register_set(). Remove _Nios2_ISR_Dispatch_with_shadow_preemptive().
* nios2: Optimize ISR dispatch variantSebastian Huber2021-02-011-42/+60
| | | | | Use _Thread_Do_dispatch() in _Nios2_ISR_Dispatch_with_shadow_non_preemptive().
* nios2: Use Per_CPU_Control::isr_dispatch_disableSebastian Huber2021-02-015-35/+23
|
* nios2: Add TLS supportSebastian Huber2021-02-011-4/+15
| | | | Update #4214.
* nios2: Make _ISR_Is_in_progress() weakSebastian Huber2021-02-011-1/+1
| | | | This allows the BSP to override this function.
* nios2: Fix ISR dispatch variantsSebastian Huber2021-02-012-9/+7
| | | | | The thread dispatch disabled level moved to _Per_CPU_Information some time ago.
* rtems: Fix implicit type conversionsSebastian Huber2021-02-011-4/+4
| | | | This fix relates to a Coverity issue (PW.MIXED_ENUM_TYPE).
* score: Remove unused _SMP_Assert()Sebastian Huber2021-02-011-9/+0
|
* score: Fix implicit type conversionSebastian Huber2021-02-011-1/+1
| | | | This fix relates to a Coverity issue (PW.MIXED_ENUM_TYPE).
* rtems: Fix explicit type conversionSebastian Huber2021-02-011-1/+1
| | | | This fix relates to a Coverity issue (PW.MIXED_ENUM_TYPE).
* libtest: Fix implicit type conversionsSebastian Huber2021-02-012-6/+9
| | | | This fix relates to a Coverity issue (PW.MIXED_ENUM_TYPE).
* rtems: Mark value as usedSebastian Huber2021-02-011-0/+1
| | | | This fix relates to a Coverity issue (UNUSED_VALUE).
* score: Remove double assignmentSebastian Huber2021-02-011-2/+1
| | | | This fix relates to a Coverity issue (UNUSED_VALUE).
* libtest: Check return values with RTEMS_DEBUGSebastian Huber2021-02-011-13/+47
| | | | This fix relates to a Coverity issue (UNINIT).
* score: Remove superfluous type qualifierSebastian Huber2021-02-011-1/+1
| | | | | This fix relates to a Coverity issue (PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE).
* score: Simplify _CORE_message_queue_Broadcast()Sebastian Huber2021-02-011-11/+8
| | | | This fix relates to a Coverity issue (PW.SET_BUT_NOT_USED).
* score: Simplify _MRSP_Wait_for_ownership()Sebastian Huber2021-02-011-7/+6
| | | | | | | Do not shadow the queue_context parameter with a local variable. Reuse the queue context to reduce the required stack space. This fix relates to a Coverity issue (PW.PARAMETER_HIDDEN).
* score: Fix implicit type conversionSebastian Huber2021-02-011-1/+1
| | | | This fix relates to a Coverity issue (PW.MIXED_ENUM_TYPE).
* kern_tc.c: Remove unused codeSebastian Huber2021-02-011-6/+0
| | | | This fix relates to a Coverity issue (PW.DECLARED_BUT_NOT_REFERENCED).
* score: Add comments and asserts for clarificationSebastian Huber2021-02-011-0/+7
| | | | This fix relates to a Coverity issue (NULL_RETURNS).
* score: Fix _CORE_message_queue_Submit() indentationSebastian Huber2021-02-011-40/+40
| | | | This fix relates to a Coverity issue (NESTING_INDENT_MISMATCH).
* score: Fix _Objects_Get_information() indentationSebastian Huber2021-02-011-7/+8
| | | | This fix relates to a Coverity issue (NESTING_INDENT_MISMATCH).
* score: Add _Thread_Get_objects_information()Sebastian Huber2021-02-014-22/+38
| | | | | | | | | | | | | | | | | | | | | We do not need all the checks if we have a valid indentifier to a thread class object. Using the new _Thread_Get_objects_information() instead of the inline function _Thread_Get_objects_information_by_id() avoids dead code since the identifier in a thread control is always valid and the return NULL path in _Thread_Get_objects_information_by_id() would be dead code. The _Thread_Get_objects_information_by_id() should be an inline function since it is used by _Thread_Get() and thus performance critical. Static analyzers which cannot derive that the identifier in a thread control is always valid, may find a potential NULL pointer access (or otherwise find dead code). The identifier in an object control is always valid, see _Objects_Initialize_information() and _Objects_Extend_information(). Move _RTEMS_tasks_Free() to the only source file which calls this function.
* score: Rename _Thread_Get_objects_information()Sebastian Huber2021-02-014-10/+14
| | | | | | Rename _Thread_Get_objects_information() in _Thread_Get_objects_information_by_id() to emphasize that this thread method uses an object identifier and not a thread control.
* rtems: Use _Status_Get()Sebastian Huber2021-01-283-3/+6
| | | | This fixes implicit conversions between different enum types.
* libtest: Remove superfluous NULL pointer checkSebastian Huber2021-01-271-1/+1
| | | | This fix relates to CID 1468683 (REVERSE_INULL).
* libtest: Use dependency injectionSebastian Huber2021-01-271-5/+11
| | | | This helps static analyzers.
* Update copyright notice to 2021Sebastian Huber2021-01-271-1/+1
|
* rtems: Add "Notes" paragraph headerSebastian Huber2021-01-2711-440/+577
| | | | | | | Place the paragraphs in the same order as the directive documentation in the RTEMS Classic API Guide. Update #3993.
* heap: Fix _Heap_Area_overhead()Sebastian Huber2021-01-261-1/+7
| | | | | The first block must be a proper block. Account for this in _Heap_Area_overhead().
* cpucounter: Increase conversion accuracySebastian Huber2021-01-261-3/+4
| | | | | | The maximum frequency is UINT32_MAX. Converted to a uint64_t variable it can be shifted by 32. The addition does not overflow since bin_per_s - 1 is UINT32_MAX.
* Improve file header comment in generated filesSebastian Huber2021-01-2515-45/+105
|
* Fix RTEMS_LINKER_ROSET_ITEM_ORDERED_DECLARE()Sebastian Huber2021-01-251-1/+1
| | | | | | Add "extern" similar to RTEMS_LINKER_RWSET_ITEM_ORDERED_DECLARE(). Close #4221.
* cpukit/spi: Allow driver specific ioctlChristian Mauderer2021-01-212-0/+10
| | | | This allows a SPI driver to add a hardware specific ioctl.
* mrsp: Change error status for a nested seizeSebastian Huber2021-01-211-11/+19
| | | | | | | | Return STATUS_DEADLOCK (RTEMS_INCORRECT_STATE) to indicate a nested seize since this is a kind of deadlock. This status code is also used for other deadlocks. Update #4217.
* cpukit: Merge FreeBSD values for the prioritiesChris Johns2021-01-081-17/+85
| | | | | | | It seems we need valid values or assumptions in the FreeBSD about these values breaks some of the code. Closes #4207