Commit Graph

37669 Commits

Author SHA1 Message Date
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
Joel Sherrill
ac55ed87fe bsps/arm/edb7312/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
Joel Sherrill
089a16b6e8 cpukit/dev/can/can-bus.c: Address type-limits warnings
These changes were made to address GCC -Wtype-limits warnings.
In this case, the variables were unsigned and there was no need to
check them for being <= 0.

Updates #5388.
2025-12-11 23:53:16 +00:00
Joel Sherrill
1e93113205 bsps/powerpc/shared/flash/flash.c: Address type-limits warnings
These changes were made to address GCC -Wtype-limits warnings.
In this case, an unsigned variable was used to contain an
int function return value and check it for < 0.
2025-12-11 23:53:16 +00:00
Joel Sherrill
e30fa2a829 bsps/powerpc/virtex4/include/bsp/irq.h: 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
Joel Sherrill
71b2bc55bd bsps/riscv/niosv/.../altera_epcq_driver.c: Address type-limits warnings
These changes were made to address GCC -Wtype-limits warnings.
In this case, the values being checked were all unsigned and
the checks redundant.
2025-12-11 23:53:16 +00:00
Joel Sherrill
ba5ebfc3c7 bsps/powerpc/virtex4/start/mmu.c: Address type-limits warnings
These changes were made to address GCC -Wtype-limits warnings.
In this case, the "sz" was always >= 0 as it was unsigned.
2025-12-11 23:53:16 +00:00
Joel Sherrill
5fed67781c bsps/powerpc/virtex/include/bsp/irq.h: 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
Joel Sherrill
6c2a1de541 bsps/powerpc/ss555/start/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
Joel Sherrill
5c0f705782 bsps/powerpc/mpc55xxevb/include/bsp/irq.h: 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
Joel Sherrill
005f209af6 bsps/powerpc/gen83xx/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
Joel Sherrill
53affed6e9 bsps/powerpc/beatnik/flash/flashcfg.c: Address type-limits warnings
These changes were made to address GCC -Wtype-limits warnings.
In this case, bank was unsigned and there was no need to
compare it being negative.
2025-12-11 23:53:16 +00:00
Joel Sherrill
8a200f79f7 bsps/m68k/uC5282/console/console.c: Address type-limits warnings
These changes were made to address GCC -Wtype-limits warnings.
In this case, the type was unsigned and there was no need to
compare it being >= 0.
2025-12-11 23:53:16 +00:00
Joel Sherrill
0be36b694d bsps/m68k/mcf5329/console/console.c: Address type-limits warnings
These changes were made to address GCC -Wtype-limits warnings.
In this case, the type was unsigned and there was no need to
compare it being >= 0.
2025-12-11 23:53:16 +00:00
Joel Sherrill
c25be2fe81 bsps/m68k/genmcf548x/console/console.c: Address type-limits warnings
These changes were made to address GCC -Wtype-limits warnings.
In this case, the type was unsigned and there was no need to
compare it being >= 0.
2025-12-11 23:53:16 +00:00
Joel Sherrill
16aa7efdc1 bsps/m68k/av5282/console/console.c: Address type-limits warnings
These changes were made to address GCC -Wtype-limits warnings.
In this case, the type was unsigned and there was no need to
compare it being >= 0.
2025-12-11 23:53:16 +00:00
Joel Sherrill
0da06c2818 bsps/i386/pc386/console/keyboard.c: Address type-limits warnings
These changes were made to address GCC -Wtype-limits warnings.
In this case, the array index was an unsigned char and the array
being indexed had 256 entries. There was no way for the index to
be an invalid index.
2025-12-11 23:53:16 +00:00