summaryrefslogtreecommitdiffstats
path: root/cpukit/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* rtems: Clarify timer manager documentationSebastian Huber2021-02-171-52/+184
| | | | | | | Unify the wording across similar directives of other managers. Add "CONSTRAINTS" section. Update #3993.
* rtems: Clarify event manager documentationSebastian Huber2021-02-171-16/+108
| | | | | | | Unify the wording across similar directives of other managers. Add "CONSTRAINTS" section. Update #3993.
* Add macros to assert status and use itRyan Long2021-02-121-0/+30
| | | | | | | These macros are to be used to check the status from calls that are flagged by Coverity as 'Unchecked return value'. Fix file assert.h
* libcsupport: Add sbrk greedy support to consume all sbrk memoryChris Johns2021-02-101-0/+13
| | | | | | | | | - Move the heap sbrk code into a separate routnine. - Update heap and workspace greedy allocators to use the common sbrk greedy support. Closes #3982
* basedefs: Add stringification of argument listsSebastian Huber2021-02-091-8/+8
| | | | | | Change RTEMS_STRING() and RTEMS_XSTRING() to accept a variable number of arguments which is stringified. This can be used for example to create register lists for inline assembler statements.
* libtest: Add T_get_thread_timer_state()Sebastian Huber2021-02-081-1/+10
|
* libcsupport: Add no_regular_file_mknod as a mount option to the mount tableChris Johns2021-02-081-0/+1
| | | | | | | | | | | | | - 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-061-1/+8
| | | | | | | 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-061-0/+134
| | | | Update #4230.
* score: Constify Thread_queue_First_operationSebastian Huber2021-02-061-6/+7
| | | | 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: Rework object services APISebastian Huber2021-02-031-58/+192
| | | | | | | | | 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.
* score: Clarify thread life state documentationSebastian Huber2021-02-011-2/+2
|
* score: Document Thread_Life_stateSebastian Huber2021-02-011-3/+40
|
* 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).
* 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 _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).
* score: Add comments and asserts for clarificationSebastian Huber2021-02-011-0/+7
| | | | This fix relates to a Coverity issue (NULL_RETURNS).
* score: Add _Thread_Get_objects_information()Sebastian Huber2021-02-012-16/+24
| | | | | | | | | | | | | | | | | | | | | 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-013-9/+13
| | | | | | 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: 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().
* Improve file header comment in generated filesSebastian Huber2021-01-2514-42/+98
|
* 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-211-0/+7
| | | | 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
* shell: Add i2c and spi commandsChristian Mauderer2020-12-141-0/+28
| | | | | | | | This adds some commands that are usefull for debugging simple serial interfaces. Even if they are a complete re-implementation, the i2c* commands use a simmilar call like the Linux i2c tools.
* config: Fix invalid static assertions in CSebastian Huber2020-12-122-31/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | Expressions in static assertions must be integral constant expressions. In integral constant expressions the use of address constant expressions is not allowed. In static initializers the address constant expressions are allowed. Introduce a new macro _CONFIGURE_ASSERT_NOT_NULL() which leads to a compile time error if the second parameter is NULL. It generates error messages like this if for example #define CONFIGURE_INIT_TASK_ENTRY_POINT NULL is provided by the application: cpukit/include/rtems/confdefs/inittask.h:51:26: error: size of unnamed array is negative 51 | ( _type ) sizeof( int[ ( _value ) != NULL ? 1 : -1 ] ) ) | ^ cpukit/include/rtems/confdefs/inittask.h:170:3: note: in expansion of macro '_CONFIGURE_ASSERT_NOT_NULL' 170 | _CONFIGURE_ASSERT_NOT_NULL( | ^~~~~~~~~~~~~~~~~~~~~~~~~~ This fix relates to CID 1470570 (PARSE_ERROR). Update #4181.
* rtems: Generate <rtems/rtems/timer.h>Sebastian Huber2020-12-031-211/+494
| | | | | | | | Change license to BSD-2-Clause according to file histories and documentation re-licensing agreement. Update #3899. Update #3993.
* score: Return a status in _Objects_Set_name()Sebastian Huber2020-12-031-6/+8
|
* rtems: Generate <rtems/rtems/object.h>Sebastian Huber2020-12-031-257/+449
| | | | | | | | Change license to BSD-2-Clause according to file histories and documentation re-licensing agreement. Update #3899. Update #3993.
* score: Fix Doxygen group membershipSebastian Huber2020-12-021-1/+1
| | | | Update #3706.
* score: Fix Doxygen group nameSebastian Huber2020-12-021-1/+1
| | | | Update #3706.
* rtems: Fix Doxygen return descriptionSebastian Huber2020-12-021-2/+2
|
* rtems: Clarify invalid identifier descriptionsSebastian Huber2020-12-022-7/+8
| | | | Update #3993.
* rtems: Clarify rtems_partition_delete()Sebastian Huber2020-12-021-2/+3
| | | | | | | Move the PTCB sentence to the notes to be in line with rtems_partition_create(). Update #3993.
* rtems: Clarify rtems_partition_create()Sebastian Huber2020-12-021-6/+6
| | | | | | | The rtems_partition_create() returns an object identifier and not just a partition identifier. Update #3993.
* rtems: Fix Doxygen group nameSebastian Huber2020-12-021-1/+1
| | | | Update #3706.
* rtems: Fix Doxygen group membershipsSebastian Huber2020-12-022-2/+2
| | | | Update #3706.
* config: Canonicalize @defgroup and @file commentsSebastian Huber2020-12-0239-73/+118
| | | | | | | Adjust group identifier and names to be in line with a common pattern. Use common phrases for the group and file brief descriptions. Update #3706.
* sapi: Canonicalize @defgroup and @file commentsSebastian Huber2020-12-029-32/+58
| | | | | | | Adjust group identifier and names to be in line with a common pattern. Use common phrases for the group and file brief descriptions. Update #3706.
* score: Canonicalize Doxygen @file commentsSebastian Huber2020-12-02105-274/+326
| | | | | | Use common phrases for the file brief descriptions. Update #3706.
* rtems: Canonicalize Doxygen @file commentsSebastian Huber2020-12-0225-40/+51
| | | | | | Use common phrases for the file brief descriptions. Update #3706.