path: root/cpukit (unfollow)
Commit message (Collapse)AuthorFilesLines
8 daystftpDriver.c: Fix Coverity issuesFrank K├╝hndel1-5/+22
CID 1506523: Unchecked return value from library (CHECKED_RETURN) CID 1506522: Unchecked return value from library (CHECKED_RETURN) CID 1437618: Unchecked return value from library (CHECKED_RETURN) Close #4718
8 daysconfig: Add CONFIGURE_RECORD_INTERRUPTS_ENABLEDSebastian Huber3-0/+33
This enables the tracing of interrupt entry/exit events through an application configuration option. The interrupt processing can be viewed with Trace Compass using rtems-record-lttng from the RTEMS Tools. Update #4769.
2022-11-25libmisc/rtems-fdt: Support prop map items up to the size of uintptr_tChris Johns2-2/+23
Updates #4729
2022-11-25libmisc/shell: Fix edit Coverity errorChris Johns1-1/+1
Coverity Id: CID 1517029, CID 1517030, CID 1517031
2022-11-23libmisc/shell: Support terminal size as env variablesChris Johns3-39/+155
Closes #4763
2022-11-18cpukit/rtems-fdt: Avoid use of malloc/errnoKinsey Moore1-7/+6
Use of malloc implies errno which adds TLS dependencies and prevents use of this FDT wrapper library in BSP initialization code. This change makes use of rtems_malloc and rtems_calloc which avoid TLS dependencies.
2022-11-14cpukit: Change license to BSD-2 for files with Gaisler copyrightDaniel Cederman18-58/+374
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-10arm: Fix Armv7-M TLS supportSebastian Huber1-1/+1
Set the thread ID register in the CPU context. Update #3835. Close #4753.
2022-11-09riscv: Simplify _CPU_ISR_Set_level()Sebastian Huber1-15/+13
Where CPU_ENABLE_ROBUST_THREAD_DISPATCH == TRUE, the only supported interrupt level allowed to set is 0 (interrupts enabled). This constraint is enforced by the API level functions which return an error status for other interrupt levels.
2022-11-09libmd: Remove extra digest copy in SHA256_Final()Sebastian Huber1-1/+0
The extra digest copy was introduced by an erroneous merge conflict resolution for commit "crypto routines: Hint minimum buffer sizes to the compiler".
2022-11-09riscv: Remove superfluous init/fini functionsSebastian Huber1-12/+0
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-09cpukit/aarch64: Emulate FPSR for FENV trapsKinsey Moore1-0/+20
The AArch64 TRM specifies that when FPCR is set to trap floating point exceptions, the FPSR exception bits are not set. This ensures that FPSR is updated as FENV expects even if floating point exception traps are enabled.
2022-11-08rtems: Fix type in descriptionSebastian Huber1-1/+1
2022-10-31cpukit/libdebugger: Fix stepping on ARM architecturesChris Johns1-313/+495
Closes #4744
2022-10-30cpukit/dev/can: Added CAN supportPrashanth S4-0/+1125
2022-10-18libdebugger: Add a target break call to suspend all running threadsChris Johns3-16/+65
- Optionally wait if there is no remote debugger connected and break when the remote connects Closes #4740
2022-10-14riscv: Move functions to avoid build issuesSebastian Huber1-0/+10
The _RISCV_Map_cpu_index_to_hardid() and _RISCV_Map_hardid_to_cpu_index() functions must be available to all riscv BSPs.
2022-10-14powerpc: Conditionally provide Context_Control_fpSebastian Huber1-3/+6
This avoids a pedantic warning about a zero size Context_Control_fp.
2022-10-14powerpc: Fix 'noreturn' function does returnSebastian Huber1-0/+1
2022-10-14score: INTERNAL_ERROR_IDLE_THREAD_STACK_TOO_SMALLSebastian Huber3-2/+8
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 Huber11-74/+286
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 Huber2-63/+170
2022-10-14stackchk: Avoid internal header fileSebastian Huber1-8/+6
2022-10-14score: INTERNAL_ERROR_IDLE_THREAD_CREATE_FAILEDSebastian Huber3-4/+12
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 Huber39-182/+207
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 Huber4-18/+24
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-14score: Require power of two CPU_STACK_MINIMUM_SIZESebastian Huber4-4/+10
For most CPU ports this was already the case. This makes it possible to use the size as an object alignment using RTEMS_ALIGNED().
2022-10-14libmisc/rtems-fdt: Fix return error valuesChris Johns1-2/+2
Updates #4729
2022-10-11libmisc/rtems-fdt: Fix missing error stringChris Johns1-1/+2
- Coverity CID 1515930 issue Updates #4729
2022-10-10libmisc/rtems-fdt: Update to support 64bit addressesChris Johns3-134/+529
- 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-06config: CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZESebastian Huber1-47/+48
Move CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZE to the general configuration options.
2022-10-04rtems: Clarify application config info APISebastian Huber2-221/+625
Update #3993.
2022-10-03cpukit/fdt: Free index before containerKinsey Moore1-2/+2
Ensure that the index is released before the structure containing it is freed and NULLed. Updates #4460
2022-10-03cpukit/fdt: Check correct allocationKinsey Moore1-1/+1
The second allocation check was mistakenly rechecking the first allocation. It now checks the correct allocation and ensures that names is not NULL. Updates #4462
2022-09-30rtems: Fix formatSebastian Huber1-1/+1
2022-09-23score: Simplify Chain_Node definitionSebastian Huber1-16/+6
Fix documentation.
2022-09-23rtems: Add rtems_clock_get_ticks_since_boot() functionSebastian Huber1-0/+53
This function was declared, however, a definition was missing. Add a validation test for it.
2022-09-22rtems: Fix typo in rtems_build_name() definitionSebastian Huber1-1/+1
2022-09-20bsps/riscv: Add Microchip PolarFire SoC BSP variantPadmarao Begari2-2/+2
The Microchip PolarFire SoC support is implemented as a riscv BSP variant to boot with any individual hart(cpu core) or SMP based on the boot HARTID configurable and support components are 4 CPU Cores (U54), Interrupt controller (PLIC), Timer (CLINT), UART.
2022-09-19Do not use RTEMS_INLINE_ROUTINESebastian Huber137-982/+982
Directly use "static inline" which is available in C99 and later. This brings the RTEMS implementation closer to standard C. Close #3935.
2022-09-12score: Prevent an out of bounds warningSebastian Huber1-2/+7
Update #4702.
2022-09-09score: Remove _CPU_Counter_difference()Sebastian Huber23-187/+19
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-08libcrypt: There is no need to clear message digestXin LI2-4/+0
context after they are finialized after r336539, so do not do it. Submitted by: David CARLIER <devnexen gmail com> MFC after: 1 month (after r336539) Differential Revision:
2022-09-08Get rid of unused variables.Xin LI2-16/+2
copied_key and copied_salt are assigned with NULL and never used otherwise. Remove the two variables and related code. Reviewed by: pfg MFC after: 2 weeks Differential Revision:
2022-09-08lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni3-2/+8
Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.