summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/objectimpl.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: Simplify _Objects_Is_api_valid()Sebastian Huber2023-04-261-3/+1
| | | | Close #4863.
* Do not use RTEMS_INLINE_ROUTINESebastian Huber2022-09-191-23/+23
| | | | | | | Directly use "static inline" which is available in C99 and later. This brings the RTEMS implementation closer to standard C. Close #3935.
* score: Fix unlimited objects supportSebastian Huber2022-07-181-4/+25
| | | | | | | | Commit 21275b58a5a69c3c838082ffc8a7a3641f32ea9a ("score: Static Objects_Information initialization") introduced an off-by-one error in the maintenance of inactive objects. Close #4677.
* cpukit/include/rtems/score/[a-r]*.h: Change license to BSD-2Joel Sherrill2022-02-281-3/+22
| | | | Updates #3053.
* cpukit: occured -> occurredSebastian Huber2021-07-161-4/+4
|
* score: Rename _Stack_Free_nothing()Sebastian Huber2021-05-111-0/+7
| | | | | | | Rename _Stack_Free_nothing() in _Objects_Free_nothing() to make it reusable for the message queue buffers. Update #4007.
* score: Replace Objects_Name_or_id_lookup_errorsSebastian Huber2021-04-071-37/+7
| | | | | Replace Objects_Name_or_id_lookup_errors with new Status_Control codes. Get rid of the _Status_Object_name_errors_to_status lookup table.
* score: Remove _Objects_Open()Sebastian Huber2021-02-241-39/+21
| | | | | Use the type safe _Objects_Open_u32() instead. Return the object identifier to enforce a common usage pattern.
* score: Return a status in _Objects_Set_name()Sebastian Huber2020-12-031-6/+8
|
* score: Canonicalize Doxygen @file commentsSebastian Huber2020-12-021-4/+2
| | | | | | Use common phrases for the file brief descriptions. Update #3706.
* rtems: Add _RTEMS_Name_to_id()Sebastian Huber2020-08-311-10/+13
| | | | | | | | | | Simplify object name to identifier directives. Using _RTEMS_Name_to_id() to implement the directives enables a tail call optimization. Change license to BSD-2-Clause according to file history. Update #3053.
* score: Constify objects name to id functionsSebastian Huber2020-08-311-4/+4
|
* objectdata.h, objectimpl.h: Change structure member from free to deallocateJoel Sherrill2020-02-141-2/+2
| | | | | | | | 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: 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: _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-121-49/+54
| | | | | | | | 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-121-19/+42
| | | | | | | | | | | 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.
* rtems: Add and use rtems_object_get_local_node()Sebastian Huber2019-12-131-9/+0
| | | | Update #3841.
* doxygen: score: adjust doc in objectimpl.h to doxygen guidelinesAndreas Dachsberger2019-05-131-174/+205
| | | | Update #3706.
* doxygen: Rename Score* groups in RTEMSScore*Sebastian Huber2019-04-041-1/+1
| | | | Update #3706
* score: Static Objects_Information initializationSebastian Huber2018-12-141-182/+4
| | | | | | | | | | | Statically allocate the objects information together with the initial set of objects either via <rtems/confdefs.h>. Provide default object informations with zero objects via librtemscpu.a. This greatly simplifies the workspace size estimate. RTEMS applications which do not use the unlimited objects option are easier to debug since all objects reside now in statically allocated objects of the right types. Close #3621.
* score: Remove Objects_Information::auto_extendSebastian Huber2018-12-141-4/+23
| | | | | | | Use Objects_Information::objects_per_block to provide this information. Add and use _Objects_Is_auto_extend(). Update #3621.
* score: Remove Objects_Information::the_apiSebastian Huber2018-12-071-4/+0
| | | | | | | Remove Objects_Information::the_class. This information is already contained in Objects_Information::maximum_id. Update #3621.
* score: Remove Objects_Information::maximumSebastian Huber2018-12-071-3/+15
| | | | | | | This information is already present in Objects_Information::maximum_id. Add and use _Objects_Get_maximum_index(). Update #3621.
* score: Optimize object lookupSebastian Huber2018-12-071-3/+23
| | | | | | | | | | | | | | | | Use the maximum ID for the ID to object translation. Using the maximum ID gets rid of an additional load from the object information in _Objects_Get(). In addition, object lookups fail for every ID in case the object information is cleared to zero. This makes it a bit more robust during system startup (see new tests in spconfig02). The local table no longer needs a NULL pointer entry at array index zero. Adjust all the object iteration loops accordingly. Remove Objects_Information::minimum_id since it contains only redundant information. Add _Objects_Get_minimum_id() to get the minimum ID. Update #3621.
* score: Rename Objects_Information::allocation_sizeSebastian Huber2018-12-071-2/+2
| | | | | | | | Rename Objects_Information::allocation_size in Objects_Information::objects_per_block. Adjust integer types in _Objects_Shrink_information() and _Objects_Free(). Update #3621.
* score: Rename Objects_Information::sizeSebastian Huber2018-12-071-8/+8
| | | | | | | | Rename Objects_Information::size to Objects_Information::object_size. Change its type from size_t to uint16_t and move it to reduce the size of Objects_Information. Update #3621.
* score: Remove Objects_Information::is_stringSebastian Huber2018-12-071-11/+22
| | | | | | Use Objects_Information::name_length to store this information. Update #3621.
* score: Move internal structures to objectdata.hSebastian Huber2018-11-121-1/+1
| | | | Update #3598.
* score: Optimize Objects_InformationSebastian Huber2018-11-061-14/+14
| | | | | | | Reduce structure internal padding. Group members used by _Objects_Get() together. Reduce size of some members. Format and simplify _Objects_Extend_information().
* Remove RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMESSebastian Huber2018-10-291-36/+38
| | | | | | | | | Enable support for string objects names unconditionally. Add const qualifier throughout. Split _Objects_Namespace_remove() into _Objects_Namespace_remove_u32() and _Objects_Namespace_remove_string() to avoid an unnecessary dependency on _Workspace_Free(). Update #2514.
* Remove make preinstallChris Johns2018-01-251-0/+1002
A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.