Commit Graph
37885 Commits
Author SHA1 Message Date
Karthikey Kadati 69ecb4abf5 build: Reformat sptests/grp.yml to use 2-space YAML array indentation
Apply mandatory 2-space indentation for YAML arrays in
spec/build/testsuites/sptests/grp.yml to satisfy the RTEMS CI
formatting checks.

No functional change.

Signed-off-by: Karthikey Kadati <karthikey3608@gmail.com>
2026-03-06 22:00:46 +05:30
Shivam Deolankar 110dcaf3df cpukit/error: Make RTEMS_ERROR_* shifts 16-bit host clean
Cast the literal 1 to rtems_error_code_t before shifting to avoid
undefined behavior on systems with a 16-bit int.

Include <limits.h> for CHAR_BIT.
Signed-off-by: Shivam Deolankar <shivam.deolankar@gmail.com>
2026-03-06 04:07:22 +00:00
Matteo Concas a41583c375 cpukit/drvmgr: Don't include implementation header files
Not how RTEMS is designed, can cause problems further down.

Closes #5501
2026-03-05 11:32:08 +01:00
Gedare Bloom 8166a413c9 spec/build: remove BSP_MINIMUM_TASK_STACK_SIZE
Fixes #5493.
2026-03-03 17:19:53 +00:00
Aaron Nyholm d62d6b659c bsps/zynqmp: Add option to map PCIe address space
Added ability to map PCIe address space on ZynqMP.
2026-03-03 00:32:00 +00:00
Sebastian Huber 632b1a755b smptests: Fix variable set but not used
Fix this warning.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2026-03-02 23:21:49 +01:00
Sebastian Huber 69c80e8ec9 libtests: Fix variable 'remains' set but not used
Fix this warning.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2026-03-02 23:21:49 +01:00
Sebastian Huber 2f6518d639 libtests: Fix variable 'i' set but not used
Fix this warning.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2026-03-02 23:21:49 +01:00
Gedare Bloom d0ed4843ff validation: regenerate from central
updates #5143
2026-03-02 10:04:32 -06:00
82a4e3dfc2 cpukit: Support dates later than 2100
These changes eliminate the year 2100 as a limit for TOD. The new
limit is the year 4096. This limit is not due to any RTEMS limitation
but just before the year 4183 when the rounding error in the length
of the year adds up to an entire day. See
https://de.wikipedia.org/wiki/Schaltjahr for details.

There are still limits on Classic APIs which use the 32-bit rtems_interval
type. This corresponds to the Score Watchdog_Interval type. This impacts
delays, timeouts, and Classic API "after" timers.

Closes #5143

Co-authored-by: Joel Sherrill <joel@rtems.org>
Co-authored-by: Gedare Bloom <gedare@rtems.org>
2026-03-02 10:04:32 -06:00
Joel Sherrill b40fb79898 contrib/cpukit/posix-newlib: Add gmtime_r.c and mktime.c from newlib
Newlib hash: a7c614986ab2e21a342afe3105fb88985a653996

These were added to allow cpukit/score code to use mktime() and
gmtime_r() while avoiding dependencies on external libraries.
2026-03-02 10:04:32 -06:00
M Mithilesh 1af2b99fa9 cpukit/can: Fix out-of-bounds array access
Add bounds checking to txtb_id to prevent out-of-bounds writes
in the TX buffer array. Fixes Coverity CID 1642617 and resolves
Issue #5248.
2026-02-27 15:49:12 -06:00
Pavel Pisa 85b155e596 i386/pc386/VGA: fix lost curly bracket and silence warnings
The code seems to be broken for years.
Tested to work on real hardware (AMD Athlon) booted
over pxelinux in preparation for CAN stack test
with original Philips/NXP SJA1000 chips.

RTEMS configured with with

  RTEMS_POSIX_API = True
  BSP_ENABLE_COM1_COM4 = True
  USE_COM1_AS_CONSOLE = False
  USE_VBE_RM = False
  USE_CIRRUS_GD5446 = False

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2026-02-27 21:34:23 +00:00
Joel Sherrill 42df15b27d aarch64/xilinx-zynqmp/optramlen.yml: Correct sentence
Correcting spelling of size by moving an "a" where it should be.
2026-02-27 15:08:09 -06:00
M Mithilesh 2e08b935b4 cpukit/librtemscxx: Initialize spolicy in start_thread
CID 1592923: Uninitialized scalar variable.

The 'spolicy' variable in thread::start_thread was declared without
initialization. Although the subsequent switch statement assigns
a value, Coverity flagged this as a risk.

This patch initializes 'spolicy' to SCHED_FIFO at declaration.
SCHED_FIFO was chosen because it matches the existing 'default'
case in the switch statement, ensuring consistency.

cpukit/librtemscxx: Initialize spolicy in start_thread (CID 1592923)

Restore default block for switch statement consistency
2026-02-27 07:27:14 -06:00
Kinsey Moore 3d396291c3 testsuites/spclock_err02: Fix status assert descriptors
This fixes the descriptors provided in asserts that check the status to
reflect the function that is actually being checked.
2026-02-26 16:31:09 -06:00
Kinsey Moore fd017c4628 testsuite/sp2038: Fix screen capture content
The screen capture sample content does not have a correct test header or
footer.
2026-02-26 16:30:07 -06:00
Preetam Das e4a02bc216 bsps/raspberrypi5: ADD SMP support for Pi5 BSP
This updates the PI5 BSP to have SMP Support using PSCI.
2026-02-24 22:14:38 +05:30
Preetam Das 09343c8ff9 bsps/shared: Extract PSCI target_cpu calculation
This adds a BSP-level function that returns the calculated PSCI
target_cpu parameter for a given cpu_index. BSPs can override this
function to use the correct affinity level for the calculation.

Also updates _CPU_SMP_Start_processor() to make use of this
function and remove code duplication.
2026-02-24 22:14:32 +05:30
Preetam Das 5e9f94ded9 bsps/raspberrypi5: Cleanup Doxygen headers
Updates the @brief doxygen tags to comply with the doxygen
guidelines.
2026-02-24 14:57:33 +05:30
Sepehr Ganji 01f88b058f cpukit/libfs/fatfs: Resolve sign extension warning
Cast fno->fdate to uint32_t before left shift to prevent sign extension
when the value is promoted and XORed with the 64-bit inode_hash.
2026-02-17 15:32:17 -07:00
Matteo Concas 758055ee3c bsps/riscv: Put processor to sleep if not boot processor
Needed to have non-SMP BSPs run on multicore systems
2026-02-17 17:55:15 +00:00
Gedare Bloom fb67bc866f cpukit/score: remove broken error checks
963ba98047 introduced a type cast
conversion that causes a signed comparison instead of unsigned
that is always true. The checks for values in excess of
SCHEDULER_EDF_PRIO_MSB are not needed since this will be LONG_MIN.
We only need to make sure the budget and deadline are positive
non-zero values.
2026-02-13 15:40:40 -06:00
Gedare Bloom cfe088dc51 .gitlab: update ignore.toml for fastlz
Updates #5437
2026-02-13 21:12:52 +00:00
Gedare Bloom 88f556d987 spec/build: fix sort in librtemscpu.yml
Updates #5437
2026-02-13 21:12:52 +00:00
Gedare Bloom 9b4525cfda .gitlab: update ignore.toml for jffs2 relocation
Updates #5437
2026-02-13 21:12:52 +00:00
Gedare Bloom e18796999f .gitlab: update ignore.toml for cpukit/compression
Updates #5437
2026-02-13 21:12:52 +00:00
Gedare Bloom 5b9df2e4be .gitlab: update ignore.toml for uuid
Updates #5437
2026-02-13 21:12:52 +00:00
Bhuvan 314f38e8d4 bsps/shared/: fix pedantic warnings for SPIN_DECLARE
Fixes #5483
2026-02-13 13:32:11 +00:00
Sam Price 03a2e44c9c tc-cpuuse.c: magic number cleanup
Cleanup magic number for readability.
2026-02-12 18:32:13 -06:00
Aaron Nyholm 9ff62c34f7 cpukit/libio: Fix race condition in iop free
Closes #5411
2026-02-12 15:04:29 -06:00
Gedare Bloom 7a4c7d1ed0 cpukit: formatting fixes
Updates #3860
2026-02-12 12:17:04 -06:00
M Mithilesh 975e36b407 cpukit/posix: Fix uninitialized read in sem_open (CID 1667263)
Note: This fix was analyzed and implemented manually based
on the Coverity report.
2026-02-12 17:45:56 +00:00
Preetam Das e5eaa82420 bsps/aarch64/raspberrypi5: Add initial Raspberry Pi 5 BSP
This is initial mvp implementation for the Pi5 BSP. The
initial support has the following features:

- PL011 debug uart (full termios console driver)
- Arm Generic Timer (virtual interface)
- GIC-V2 interrupts

This will be extended in follow-up work.

Should Close rtems/programs/gsoc#85
2026-02-11 18:44:47 -05:00
Santosh Bala c014ab9b2d stm32f4: add stm32f446ze variant and variant specific linker selection
Adds an STM32F4 BSP variant with a variant linker script.
2026-02-10 18:43:51 +00:00
Joel Sherrill c893731d11 bsps/powerpc/include/bsp/VMEDMA.h: Address cast-function-type warning
This warning occurs when casting a function pointer to be a function
of a different type.
2026-02-09 16:59:41 -06:00
Kinsey Moore fa81397286 spec/optwarn: Drop global warning avoidance flags
Now that all warnings should be resolved, drop the flags disabling the
remaining warnings.
2026-02-09 17:23:00 +00:00
Kinsey Moore 9b86017d18 x86_64/amd64: Address SMP sign compare warning
The variable starts at 0 and counts upwards, so unsigned is more
appropriate.
2026-02-09 17:23:00 +00:00
Kinsey Moore c373cc01db cpukit/or1k: Update CPU_ISR_handler signature
Update the OR1K CPU_ISR_handler function signature to avoid casting
function pointers.
2026-02-09 17:23:00 +00:00
Kinsey Moore be2cd3b761 spec/jffs2: Remove sign comparison checks
Resolving warnings on 3rd-party code can be invasive and will make it
harder to bring in updates from upstream. For issues outside -Wall,
disable the warning for this piece of code instead.
2026-02-09 17:23:00 +00:00
Kinsey Moore ef52cb5fbc cpukit/dev/can: Resolve sign comparison warning
Make the constant unsigned so that signedness on both sides of the
comparison matches.
2026-02-09 17:23:00 +00:00
Mostafa Abdelglel 117e2e083b README.md: Update fix POSIX Compliance guide link
Fix broken link for the POSIX Compliance guide by replacing master with
main
2026-02-08 03:47:37 +02:00
Kinsey Moore 120bc92b04 libmisc/stringto: Resolve error on 64bit systems
On 32bit systems, int and long are the same size. This is not the case
on 64bit systems. This corrects the maximum value of the stringto type
on those systems.
2026-02-06 13:29:20 -06:00
Kinsey Moore f99e154586 spec/jffs2: Update warning flags for summary support
This flag was missed due to out of date GCC and is necessary for GCC 15
to avoid errors in third-party code.
2026-02-06 13:29:20 -06:00
Kinsey Moore 8a776715fe shared/irq: Resolve function cast warning
The function cast from more parameters to fewer parameters is generally
unsafe as the additional parameters will be undefined values that happen
to be in the right registers if it is ever called. Instead of casting
the function pointer, provide a dummy function pointer when the original
function pointer is non-NULL since it is only ever used for a
NULL-check.
2026-02-06 13:29:20 -06:00
Prashant Rahul 97e4174c62 cpukit/stringto: return RTEMS_INVALID_ADDRESS when null input string
libc's strto* functions' behaviour isn't defined when the passed string
is NULL. In glibc it causes a seg fault when I tested it. This could
cause inconsistency.
rtem's stringto* functions didnt previously checked for null before
passing to underlying strto* functions.

Added the check which returns `RTEMS_INVALID_ADDRESS` on failure.

Also added a test case for the same

Signed-off-by: Prashant Rahul <prashantrahul141@protonmail.com>
2026-02-06 17:47:28 +00:00
Joel Sherrill 9c7666ba2d bsps/powerpc: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one.
This addresses warnings that only occurred on 64-bit targets.  For the
ones which only appeared on 64-bit targets, the cause was frequently
a mismatch when comparing a combination off_t, ssize_t, and int.
2026-02-05 23:17:46 +00:00
Gedare Bloom 59ef829a34 cpukit/rfs: use InsertBraces
Updates #5342.
2026-02-05 14:43:37 -07:00
Gedare Bloom 42b507dca0 cpukit/rtl: add missing parenthesis
Fixes #5480
2026-02-05 14:41:47 -07:00
Gedare Bloom b7b0eb1142 cpukit/libdl: format with InsertBraces
Updates #5344
2026-02-05 14:40:30 -07:00