summaryrefslogtreecommitdiffstats
path: root/cpukit/include (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-11-25libmisc/rtems-fdt: Support prop map items up to the size of uintptr_tChris Johns1-0/+6
Updates #4729
2022-11-14cpukit: Change license to BSD-2 for files with Gaisler copyrightDaniel Cederman14-48/+307
This patch changes the license to BSD-2 for all source files where the copyright is held by Aeroflex Gaisler, Cobham Gaisler, or Gaisler Research. Some files also includes copyright right statements from OAR and/or embedded Brains in addition to Gaisler. Updates #3053.
2022-11-10cpukit/fdt: Fix typos and clarify paramsKinsey Moore1-9/+15
2022-11-10Remove remnants of rtems_io_lookup_nameJoel Sherrill1-21/+0
Updates #3420.
2022-11-09config: Place init task storage area in .rtemsstackSebastian Huber1-1/+2
This avoids a superfluous zero initialization of the task storage area. This reduces the system initialization time.
2022-11-08rtems: Fix type in descriptionSebastian Huber1-1/+1
2022-10-30cpukit/dev/can: Added CAN supportPrashanth S3-0/+620
2022-10-18libdebugger: Add a target break call to suspend all running threadsChris Johns2-0/+9
- Optionally wait if there is no remote debugger connected and break when the remote connects Closes #4740
2022-10-14score: INTERNAL_ERROR_IDLE_THREAD_STACK_TOO_SMALLSebastian Huber1-1/+2
Ensure that the IDLE storage allocator did allocate a suffiently large area. Update #3835. Update #4524.
2022-10-14config: Add CONFIGURE_IDLE_TASK_STORAGE_SIZESebastian Huber6-32/+104
By default, allocate the IDLE task storage areas from the RTEMS Workspace. This avoids having to estimate the thread-local storage size in the default configuration. Add the application configuration option CONFIGURE_IDLE_TASK_STORAGE_SIZE to request a static allocation of the task storage area for IDLE tasks. Update #3835. Update #4524.
2022-10-14stackchk: Add rtems_stack_checker_iterate()Sebastian Huber1-0/+75
2022-10-14stackchk: Avoid internal header fileSebastian Huber1-8/+6
2022-10-14score: INTERNAL_ERROR_IDLE_THREAD_CREATE_FAILEDSebastian Huber1-0/+1
Add the INTERNAL_ERROR_IDLE_THREAD_CREATE_FAILED fatal error in case the creation of an idle thread fails. This may happen due to a failing create extension provided by the application.
2022-10-14score: Simplify castsSebastian Huber1-8/+4
2022-10-14score: Add CPU_THREAD_LOCAL_STORAGE_VARIANTSebastian Huber1-119/+85
Update #3835.
2022-10-14score: Move Thread_Control::Registers memberSebastian Huber1-2/+9
Place this member placed directly after the end of the common block so that the structure offsets are as small as possible. This helps on instruction set architectures with a very limited range for intermediate values. For example, see the __aeabi_read_tp() implementation for ARM Thumb-1. Update #3835.
2022-10-14config: Changeable size for IDLE stack allocatorSebastian Huber1-5/+12
Allow the IDLE stack allocator to change the stack size. This can be used by applications with a very dynamic thread-local storage size to adjust the thread storage area of the IDLE tasks dynamically. Update #4524.
2022-10-10libmisc/rtems-fdt: Update to support 64bit addressesChris Johns1-4/+95
- Add support to get the parent address and size cells - Provide support to get a reg prop address map - Change getting a set of properties to uintptr_t - Improve the debug mode of the ls command to print all props Closes #4729
2022-10-04rtems: Clarify application config info APISebastian Huber2-221/+625
Update #3993.
2022-09-30rtems: Fix formatSebastian Huber1-1/+1
2022-09-23score: Simplify Chain_Node definitionSebastian Huber1-16/+6
Fix documentation.
2022-09-19Do not use RTEMS_INLINE_ROUTINESebastian Huber95-859/+859
Directly use "static inline" which is available in C99 and later. This brings the RTEMS implementation closer to standard C. Close #3935.
2022-09-09score: Remove _CPU_Counter_difference()Sebastian Huber3-10/+7
All CPU ports used the same _CPU_Counter_difference() implementation. Remove this CPU port interface and mandate a monotonically increasing CPU counter. Close #3456.
2022-09-08Implement SHA2-224 submode of SHA2-256Conrad Meyer1-0/+62
Like SHA2-384:SHA2-512, SHA2-224 is simply a truncated SHA2-256 with a different initial vector. Add to round out the complete basic SHA2 family.
2022-09-08Fix C++ includability of crypto headers with static array sizesAlan Somers4-5/+10
C99 allows array function parameters to use the static keyword for their sizes. This tells the compiler that the parameter will have at least the specified size, and calling code will fail to compile if that guarantee is not met. However, this syntax is not legal in C++. This commit reverts r300824, which worked around the problem for sys/sys/md5.h only, and introduces a new macro: min_size(). min_size(x) can be used in headers as a static array size, but will still compile in C++ mode. Reviewed by: cem, ed MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D8277
2022-09-08Implement SHA-512 truncated (224 and 256 bits)Allan Jude1-0/+66
This implements SHA-512/256, which generates a 256 bit hash by calculating the SHA-512 then truncating the result. A different initial value is used, making the result different from the first 256 bits of the SHA-512 of the same input. SHA-512 is ~50% faster than SHA-256 on 64bit platforms, so the result is a faster 256 bit hash. The main goal of this implementation is to enable support for this faster hashing algorithm in ZFS. The feature was introduced into ZFS in r289422, but is disconnected because SHA-512/256 support was missing. A further commit will enable it in ZFS. This is the follow on to r292782 Reviewed by: cem Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D6061
2022-09-08crypto routines: Hint minimum buffer sizes to the compilerConrad Meyer3-3/+3
Use the C99 'static' keyword to hint to the compiler IVs and output digest sizes. The keyword informs the compiler of the minimum valid size for a given array. Obviously not every pointer can be validated (i.e., the compiler can produce false negative but not false positive reports). No functional change. No ABI change. Sponsored by: EMC / Isilon Storage Division
2022-09-08Replace sys/crypto/sha2/sha2.c with lib/libmd/sha512c.cAllan Jude3-6/+85
cperciva's libmd implementation is 5-30% faster The same was done for SHA256 previously in r263218 cperciva's implementation was lacking SHA-384 which I implemented, validated against OpenSSL and the NIST documentation Extend sbin/md5 to create sha384(1) Chase dependancies on sys/crypto/sha2/sha2.{c,h} and replace them with sha512{c.c,.h} Reviewed by: cperciva, des, delphij Approved by: secteam, bapt (mentor) MFC after: 2 weeks Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3929
2022-09-08rtems: Include <rtems/score/cpuopts.h>Sebastian Huber3-0/+3
Directly include <rtems/score/cpuopts.h> in header files using CPU build options.
2022-09-08score: Improve formattingSebastian Huber1-4/+10
2022-09-05config: Add SMP scheduler configuration errorsSebastian Huber1-0/+20
Issue an error message if an SMP-specific scheduler is used and RTEMS_SMP is disabled. This might be a more informative compared to compiler or linker errors.
2022-09-05score: Regenerate <rtems/score/basedefs.h>Sebastian Huber1-2/+2
Two interface specification items moved.
2022-09-05rtems: Add constraints for rtems_clock_tick()Sebastian Huber1-0/+12
2022-09-05Add items to Doxygen groupsSebastian Huber16-17/+53
2022-08-31Fix pedanic warnings without a storage increaseSebastian Huber2-1/+11
Use RTEMS_ZERO_LENGTH_ARRAY for flexible array member. Update #4662.
2022-08-31libtest: Fix warnings without a pragmaSebastian Huber1-15/+8
It seems that recent GCC versions expect that functions with a "const type *" parameter will read from the referenced location. Update #4662.
2022-08-31config: Include <rtems/posix/timer.h> on demandSebastian Huber1-2/+3
Updates #4691.
2022-08-30score: Do not expose <limits.h> to <rtems.h>Sebastian Huber1-3/+1
The <rtems.h> header file should not unnecessarily include standard C header files. The <string.h> and <limits.h> header includes were removed in 2017. Update #4662.
2022-08-29score: Fix formatSebastian Huber1-1/+1
Update #4706.
2022-08-29score: Fix formatSebastian Huber2-3/+3
Update #4706.
2022-08-29Revert "linkersets.h: Fix gcc 12 warning"Sebastian Huber1-1/+1
This reverts commit f930206724e65f188fe3b095826ceb1b11000f65. The linker set begin must be a symbol and not a zero-initialized item.
2022-08-22cpukit/include: Fix including in C++Chris Johns7-13/+32
UPdates #4706
2022-08-22cpukit/include: Fixes for C++Chris Johns4-6/+14
Updates #4706
2022-08-19test.h: Add pragma for gcc 12 warningRyan Long1-0/+7
Updates #4662
2022-08-19schedulerpriority.h: Fix gcc 12 warningRyan Long1-1/+1
Changed the size of the array to 1 to get rid of the warning. Updates #4662
2022-08-19percpu.h: Add pragma for gcc 12 warningRyan Long1-0/+8
Updates #4662
2022-08-19interr.h: Fix gcc 12 warningRyan Long1-1/+3
The warning that this fixes states that "ISO C restricts enumerator values to range of 'int'." Updates #4662
2022-08-19linkersets.h: Fix gcc 12 warningRyan Long1-1/+1
Changing the offset from 0 to 1 got rid of a warning stating that offset 0 is out of bounds. Updates #4662
2022-08-19threads.h: Add pragmas to get rid of gcc 12 errorsRyan Long1-0/+15
Updates #4662
2022-08-10cpukit/include/rtems/test-info.h: Change @returns to @returnJoel Sherrill1-3/+3