Commit Graph

37685 Commits

Author SHA1 Message Date
Joel Sherrill
f7911033b5 testsuites/samples/fileio/init.c: Address -Wsign-compare warnings
Most of these warnings were between int or ssize_t and size_t.
In particular, various POSIX system calls like read() and write()
return ssize_t and comparing that value with the sizeof a buffer
is a common source of these warnings. Another common source is
using an int as the iterator in a for loop with the limit being
a size_t.

With the type change, some printf() specifiers needed to change also.
2026-01-22 23:24:35 +00:00
Joel Sherrill
3e0cf85d9c sptests: Address -Wsign-compare warnings
Most of these warnings were between int or ssize_t and size_t.
In particular, various POSIX system calls like read() and write()
return ssize_t and comparing that value with the sizeof a buffer
is a common source of these warnings. Another common source is
using an int as the iterator in a for loop with the limit being
a size_t.

With the type change, some printf() specifiers needed to change also.
2026-01-22 23:19:32 +00:00
Joel Sherrill
38fa44e802 psxtests, psxtmtests: Correct spelling
Caught by Codespell
2026-01-22 23:15:56 +00:00
Joel Sherrill
9292d681af psxtests, psxtmtests: Address -Wsign-compare warnings
Most of these warnings were between int or ssize_t and size_t.
In particular, various POSIX system calls like read() and write()
return ssize_t and comparing that value with the sizeof a buffer
is a common source of these warnings. Another common source is
using an int as the iterator in a for loop with the limit being
a size_t.

With the type change, some printf() specifiers needed to change also.
2026-01-22 23:15:56 +00:00
Joel Sherrill
5ba440ce86 libtests: Address -Wsign-compare warnings
Most of these warnings were between int or ssize_t and size_t.
In particular, read() and write() return ssize_t and comparing
that value with the sizeof a buffer is a source of these warnings.

With the type change, some printf() specifiers needed to change also.
2026-01-22 23:10:51 +00:00
Joel Sherrill
7f77dfae60 cpukit libfs: Address -Wsign-compare warnings
Also includes a related libio change.

Most of these warnings were between int or ssize_t and size_t.
In particular, various POSIX system calls like read() and write()
return ssize_t and comparing that value with the sizeof a buffer
is a common source of these warnings. Another common source is
using an int as the iterator in a for loop with the limit being
a size_t.

With the type change, some printf() specifiers needed to change also.
2026-01-22 15:34:36 -06:00
Joel Sherrill
babe771820 fstests: Correct spelling
Caught by Codespell
2026-01-22 11:52:27 -06:00
Joel Sherrill
bd2055cf5a fstests: Address -Wsign-compare warnings
Most of these warnings were between int or ssize_t and size_t.
In particular, various POSIX system calls like read() and write()
return ssize_t and comparing that value with the sizeof a buffer
is a common source of these warnings. Another common source is
using an int as the iterator in a for loop with the limit being
a size_t.

With the type change, some printf() specifiers needed to change also.
2026-01-22 11:52:27 -06:00
Wayne Thornton
a0df1c61e6 rtems/make: grammar cleanup in *.cfg files 2026-01-21 13:31:57 -07:00
Chris Johns
37281aeb4a README.md: Update adding more details and fixing links
Add details from Doxygen main page.
2026-01-20 11:22:54 +11:00
Allan Hessenflow
f135691fb7 bsps/arm/efm32gg11: address -Wsign-compare
make field cs_pin_count and index into cs_pins[] unsigned
2026-01-19 10:32:05 -08:00
Preetam Das
57d18ec2f1 bsps/aarch64: Add missing ISB after SCTLR write
A write to the sctlr_el1 register is a 'context-changing operation'
and thus requires a pipeline flush for the change to actually take
effect on subsequent instructions.

The isb instruction gurantees this, and ensures mmu is enabled
immediately.
2026-01-16 16:02:01 -06:00
YASHBHIWANIA
88c4f7fa59 bsps/erc32: Add missing Doxygen headers
This adds missing Doxygen @file headers to several files in the erc32
BSP to improve documentation categorization.
2026-01-16 20:16:21 +00:00
YASHBHIWANIA
4b641d9d23 bsps/leon3: Add missing Doxygen headers
This adds missing Doxygen headers to amba.c and drvmgr_def_drivers.c.
2026-01-16 13:43:46 -06:00
Joel Sherrill
06e58ab5fa bsps: Address files with only Eric Valette's email address
Many files with Eric Valette as author only had his email address.
This led to them being missed in previous relicensing passes.
This effort relicensed where possible and made efforts to have the
file follow the RTEMS standard for top of files (SPDX, Doxygen,
and then copyright/license).

Closes #5418.
2026-01-16 09:12:24 -06:00
Joel Sherrill
9c40ad753f cpukit: Address files with only Eric Valette's email address
Many files with Eric Valette as author only had his email address.
This led to them being missed in previous relicensing passes.
This effort relicensed where possible and made efforts to have the
file follow the RTEMS standard for top of files (SPDX, Doxygen,
and then copyright/license).

Updates #5418.
2026-01-16 09:12:24 -06:00
Joel Sherrill
3166b39f36 optstdcc.yml, cpuopts.yml: Use C23 to compile RTEMS
Prior to this change, the RTEMS build system did not specify the
version of C to compile with.

Closes #5327
2026-01-16 09:08:11 -06:00
Allan Hessenflow
fcfa71aa1c cpukit/posix/src/aio-misc.c: initialize suspendcbp
Closes #5421
2026-01-15 10:36:16 -08:00
Remi Debord
0b2455f6f8 bsps/arm: Add BSP for Versal RPU 2026-01-15 11:43:59 +01:00
Remi Debord
126e19aa60 bsps/shared/dev/serial: Move Versal UART sources 2026-01-15 11:42:45 +01:00
Joel Sherrill
5e80d1077b cpukit/libmisc/untar/untar.c: Correct third argument
The call to Untar_FromMemory_Print() on line 400 was passing
false as the third argument. "rtems_printer *" was expected.
In C previous to C23, false was a macro defined as 0 and could
be converted to a pointer. In C23, false, true, and bool are keywords.
2026-01-14 16:27:07 -06:00
Allan Hessenflow
9c1340a309 bsps: add new BSP for Silicon Labs EFM32GG11
includes support for UART/USART, I2C, SPI, TRNG
2026-01-13 18:28:43 -05:00
Allan Hessenflow
de3ba6c0b8 contrib: Import efm32gg11 4.5.0
URL
https://github.com/SiliconLabs/gecko_sdk.git

Hash
90fc93e1f95a10c981f0e49ca6787192e82fd8f2

Directory
platform/Device/SiliconLabs/EFM32GG11B/Include/
2026-01-13 18:28:43 -05:00
M Mithilesh
6e4f134238 bsps/flash: Fix resource leak in flash_sim_flashdev_init (CID 1679602)
The allocation of ftable was not freed in error handling paths.
This patch ensures ftable is freed if subsequent allocations fail.

CID 1679602
2026-01-13 23:01:31 +05:30
Joel Sherrill
5384a26b48 spec/build/cpukit/optwarn.yml: Reduce ignored warnings
The set of remaining warnings is shrinking. Reduce the set of
ignored warnings.
2026-01-09 17:16:19 -06:00
Joel Sherrill
faa6fe9a48 beagle qep: Eliminate unused function with -Wenum-conversion warning
The warning was in an unused function so it was removed.
2026-01-09 17:16:19 -06:00
Sam Price
3b78fa9013 microblaze: enhance exception diagnostics
Improve MicroBlaze exception printing by showing the faulting PC,
decoding ESR exception codes, and reporting the ESR description
to aid debugging.
2026-01-08 17:43:37 -06:00
Jeremy Lorelli
cbce507c83 bsps/m68k: Fix unused-parameter warnings
Fixes warnings introduced with 0b5d311673
2026-01-08 17:09:52 -06:00
cibi.p
ab2f0c0cb9 spec: move timespecget to librtemscpu from objpsxsgnl
The timespecget() API originates from C11 and should not be
guarded by RTEMS_POSIX_API.

Updates #5412
2026-01-08 08:52:40 -06:00
Joel Sherrill
3c27a60542 atsam/contrib: Address function cast warnings
The DMA interrupt handlers for multiple drivers took two parameters
but the signature expected by the registration function assumed the
handlers had three parameters. The solution was to conditionally add
a third parameter (ignored) and mark it with RTEMS_UNUSED.

For the UART and USART drivers, there was a type defined for the
handler which included the incorrect signature. Changed to use the
DMA handler type.
2026-01-07 13:46:56 -06:00
Jeremy Lorelli
2be044fc4e bsps/m68k: Fix incorrect register offsets for PIT in mcf5282.h
PIT register blocks are 64k in size, not 4k.
2026-01-06 10:14:11 -06:00
prashantrahul141
c2eb7644ce tests/psximfs03: reduce MEMORY_SIZE to 8k, add prefix g_ to globals
psximfs configures block size to 16, which sets maximum file size to be
1328 bytes. see
https://docs.rtems.org/docs/main/c-user/config/filesystem.html#configure-imfs-memfile-bytes-per-block

Using 8k would suffice and also some bsps, like the sparc/erc32 simply
doesnt have enough memory to be able to allocate 1000000000 bytes.

the global binding `memory` is confusing because deallocator() and
fill_space() have a parameter with the same name.

Signed-off-by: prashantrahul141 <prashantrahul141@protonmail.com>
2026-01-04 00:59:16 +05:30
Jeremy Lorelli
0b5d311673 bsps/m68k: Implement new IRQ system
Implements the required bsp directives for the 'new' style rtems
interrupt system. Previously, uC5282 only supported interrupts through
the BSP_installVME_isr directive.

BSP_installVME_isr still behaves the same, but is instead implemented
using the new IRQ directives. To ensure compatibility with existing
EPICS related code without causing subtle bugs, BSP_installVME_isr will
also poke at the EPORT interrupt settings to enable IRQ1 when installing
a "fake VME" interrupt (vector >= 192).

This also fixes a regression from e9cb088995 that broke clock interrupt
handlers, leading to the BSP crashing shortly after boot.
2025-12-28 12:46:58 -08:00
Jeremy Lorelli
c90d57b12c bsps/uC5282: Panic if clock ISR cannot be installed
If we continue executing (and configure PIT3) we get spurious interrupts
that crash the system later.
2025-12-28 03:27:14 -08:00
Aaron Nyholm
a640977c9f bsps/xilinx-zynq: Flash driver commands per-instance
zqspi flash driver uses 3 or 4 byte commands per instance.
The driver defaults to 3 byte addressing for flash chips
smaller then 16MiB.
2025-12-22 14:40:18 -06:00
Michal Lenc
40305e360f can: fix -Wsign-compare warnings
Fixes -Wsign-compare compile warnings in CAN code. This introduces
the change in rtems_ctucanfd_initialize where ntxbufs is changed from
int to unsigned int, thus making the ntxbufs < 0 obsolete.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2025-12-18 19:14:40 -06:00
Karthikey Kadati
d88a475194 testsuites/psxtests: Fix unused parameter warnings in Init
Silences -Werror=unused-parameter warnings in psximfs and psximfs04
tests by explicitly casting the unused argument to void. This fixes
the build on strict compilers.
2025-12-18 18:56:02 -06:00
Ayush Daga
919bdceecc bsps/powerpc: Remove obsolete BUILD INFO from Beatnik README 2025-12-18 18:51:59 -06:00
Sam Price
25ab337428 bsps/microblaze: Mask interrupts before enabling MER
On startup mask off the interrupt register prior to starting interrupts.
Also update the comment to describe the delay slot.
2025-12-18 18:16:55 -06:00
Dhruva P V
69a9314281 score: check previous in _Chain_Is_node_off_chain()
Previously, the function returned true when node->next == NULL, but did
not verify that node->previous was also NULL.

The updated implementation checks the node->next == NULL and in
RTEMS_DEBUG it checks node->previous == NULL before reporting the
node is off-chain.

These changes ensure that the off-chain invariant is verified in
the RTEMS_DEBUG

This change Updates RTEMS issue #4812.
2025-12-18 00:37:41 +05:30
Asif Khan
ff0c71388a cpukit/score: Remove extra blank paragraph in copyrt.h
This change eliminates an unnecessary blank paragraph in
cpukit/include/rtems/score/copyrt.h. RTEMS documentation requires single
spaced paragraphs, and the previous formatting contained consecutive
blank lines.

The modification is formatting-only and has no functional impact.

Updates #4807.
2025-12-12 11:07:00 -06:00
Asif Khan
9e93d0bc29 cpukit/rtems: Remove extra blank paragraph in barrierdata.h
This patch removes a superfluous blank paragraph from
cpukit/include/rtems/rtems/barrierdata.h. The formatting issue created
two consecutive blank lines inside the documentation block, which is not
permitted by RTEMS style rules.

This update improves documentation consistency without altering runtime
behavior.

Updates #4807.

Signed-off-by: Asif Khan <asif21012006@gmail.com>
2025-12-12 11:07:00 -06:00
Asif Khan
d96b5c6de6 cpukit/confdefs: Remove extra blank paragraph in iodrivers.h
This patch removes an unnecessary blank paragraph in
cpukit/include/rtems/confdefs/iodrivers.h to comply with RTEMS
documentation formatting guidelines. Only one blank line should separate
paragraphs, and this change enforces that rule.

Updates #4807.
2025-12-12 11:07:00 -06:00
Mazen Adel Elmessady
1477839d2a testsuites/psxtests: Added API header OK tests for Posix 8
Added API header OK test in psxtests/psxhdrs
as a part of my work to GSoC 25
note that functions ppoll(), sem_clockwait() and timespec_get()
don't have a prototype yet so the tests will fail. I won't
add them to the libpsxhdrs.yml file until my PR is approved in newlib.
2025-12-12 09:30:28 -06:00
Joao Luiz Borges
3adb189eff arm/xilinx-zynqmp-rpu: Correcting wrong macro
The ZYNQMP_RPU_CORE_INDEX macro is undefined in the code, making
BSP_ARM_GIC_MULTI_PROCESSOR_SECONDARY never being defined, which makes
the secondary core initialize GIC again. It should be changed to
ZYNQMP_RPU_SPLIT_INDEX.
2025-12-11 18:15:10 -06:00
Sam Price
0cbfcf9817 bsp/microblaze-fpga: parameterize linker layout
Add build options for start address, vector base, and BRAM length,
wire them into the microblaze_fpga linker script and BSP group,
and add the dependencies to the kcu105_qemu BSP spec.
2025-12-11 19:13:48 -05:00
Joel Sherrill
69ab3140f8 bsps/riscv/.../altera_epcq_driver.c: Address type-limits warnings
This change was made to address GCC -Wtype-limits warnings.
In this case, the counter variable was uint16_t but the value
of ALTERA_EPCQ_CONTROLLER2_1US_TIMEOUT_VALUE was too large
for uint16_t.
2025-12-11 23:53:16 +00:00
Joel Sherrill
32122555de bsps/powerpc/virtex5/include/bsp/irq.h: Address type-limits warnings
This change was made to address GCC -Wtype-limits warnings.
In this case, the irqnum was unsigned and there was no need to
check it being <= 0.
2025-12-11 23:53:16 +00:00
Joel Sherrill
3cf6df3cba bsps/powerpc/beatnik/irq/discovery_pic.c: Address type-limits warnings
This change was made to address GCC -Wtype-limits warnings.
In this case, the irq was unsigned and there was no need to
check it being <= 0.
2025-12-11 23:53:16 +00:00
Joel Sherrill
19cc585d2e bsps/powerpc/gen5200/irq/irq.c: Address type-limits warnings
These changes were made to address GCC -Wtype-limits warnings.
In this case, the irq was unsigned and there was no need to
check it being <= 0.
2025-12-11 23:53:16 +00:00