Commit Graph

37711 Commits

Author SHA1 Message Date
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
Bhavya Shah
1b440d2807 imfs/large_block_size: Modified imfs for large block size
- Added testcase psximfs04 to test the block size
- Modified confdefs/libio.h for block size 1024
2025-12-11 17:51:35 -06:00
Bhavya Shah
6367099ec0 imfs/user_allocator: Add user-configurable allocator support
- Extend IMFS and libio headers to define default allocator/deallocator ops
  and logic for configuring memfile_ops.
- Update imfs_memfile to use custom allocators for memory blocks.
- Fix imfs_statvfs.f_bfree calculation to respect user-defined ops.
- Add psximfs03 test case to validate custom allocator behavior.
- Refactor psximfs01 to share helper functions with psximfs03.
2025-12-11 17:45:13 -06:00
Ayush Daga
05629d07e2 bsps: Fix obsolete libbsp paths
Updated comments and documentation files across the bsps directory
to replace obsolete references to libbsp with their new locations
in the bsps directory.

Updates #5323
2025-12-11 12:03:56 -06:00
Ayush Daga
4646344be1 bsps/csb337: Fix obsolete libbsp path in dbgu.c
The driver referenced the old libbsp/shared/console.c path in a
documentation comment. Updated it to point to the new location
in bsps/shared/dev/serial/legacy-console.c.

Updates #5323
2025-12-11 12:03:56 -06:00
yang.zhang
fa4fa33864 testsuites/psxtests/psxtimes01/init.c: Fix build error 2025-12-09 15:42:06 +08:00
Joel Sherrill
75df51e7fd testsuites/unit/tc-score-msgq.c: Fix enum conversion warnings
The GCC warning -Wenum-conversion flagged the call to
_Core_message_queue_Submit() as returning a Status_Control
but the caller assigned it to a variable of type rtems_status_code.
2025-12-08 20:10:02 +00:00
Joel Sherrill
c9297992a2 testsuites/sptests/spsimplesched02/init.c: Fix enum conversion warning
The GCC warning -Wenum-conversion flagged assigning the return value
from _Objects_Name_to_id_u32 to an rtems_status_code variable. It
returns a Status_Control value.
2025-12-08 20:10:02 +00:00
Joel Sherrill
f1a5c225fe bsps/powerpc/gen5200/i2c/i2c.c: Fix enum conversion warnings
The GCC warning -Wenum-conversion flagged the function
i2c_transfer_wait_sema() which was treated as returning a mix of
rtems_status_code and i2c_message_status. Changed to return an
rtems_status_code uniformly.
2025-12-08 20:10:02 +00:00