2215 Commits

Author SHA1 Message Date
Joel Sherrill
fa2e0e7e58 bsps/shared/grlib/amba/ambapp_names.c: Address sign comparison warnings
These changes were made to address GCC -Wsign-compare warnings.
In this case, the vendor ID in the management structure was unsigned
and the vendor parameters to various helper functions were signed.
2025-12-04 18:56:03 -06:00
Aaron Nyholm
b7aa0b5614 bsps/xilinx-zynq: Added CFI support to QSPI driver 2025-12-04 18:52:00 -06:00
Aaron Nyholm
0ee1c38aa6 bsps/shared/dev/nor: Added support for multiple CFI regions
CFI parser now returns largest block size when multiple regions
are present allowing for block erase to be used with returned size.
2025-12-04 18:52:00 -06:00
Kinsey Moore
d82efbd7d1 bsps/shared/dev/nor: Add SFDP and CFI parsers
Fixed flashdev doxygen group
2025-12-04 18:52:00 -06:00
Sam Price
c7f4c58b6d bsps/microblaze: Fix uartlite last_close args
change arg -> args
2025-12-04 19:48:33 -05:00
Michal Lenc
6ee396c364 bsps/arm/xilinx-zynq/start/bspsmp.c: fix unused parameter warning
Fixes following unused parameter warning (treated as error) in build
without assertions.

[  25/1550] Compiling bsps/arm/xilinx-zynq/start/bspsmp.c
../../../bsps/arm/xilinx-zynq/start/bspsmp.c: In function
'_CPU_SMP_Start_processor':
../../../bsps/arm/xilinx-zynq/start/bspsmp.c:42:40: error:
unused parameter 'cpu_index' [-Werror=unused-parameter]
   42 | bool _CPU_SMP_Start_processor(uint32_t cpu_index)
      |                               ~~~~~~~~~^~~~~~~~~
cc1: all warnings being treated as errors

Happens if arm/xilinx_zynq_zedboard board is configured and RTEMS_SMP
is enabled.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2025-12-04 18:46:42 -06:00
Joel Sherrill
07c14e7042 bsps/x86_64/amd64/interrupts/idt.c: Address unused parameter warnings
These changes were made to address GCC -Wunused-parameter warnings.
These cases were masked when debug was enabled.
2025-12-04 19:16:10 -05:00
Joel Sherrill
c6f5a4e098 bsps/riscv/griscv/irq/irq.c: Address unused parameter warnings
These changes were made to address GCC -Wunused-parameter warnings.
These cases were masked when debug was enabled.
2025-12-04 19:16:10 -05:00
Joel Sherrill
28c0bcf487 bsps/arm/xilinx-zynq/start/bspsmp.c: Address unused parameter warnings
These changes were made to address GCC -Wunused-parameter warnings.
These cases were masked when SMP was disbled.
2025-12-04 19:16:10 -05:00
Joel Sherrill
de37fd5176 bsps/arm/lpc24xx/irq/irq.c: Address unused parameter warnings
These changes were made to address GCC -Wunused-parameter warnings.
These cases were masked when debug was enabled.
2025-12-04 19:16:10 -05:00
Joel Sherrill
f95ac80b3e bsps/arm/altera-cyclone-v/start/bspsmp.c: Fix unused parameter warnings
These changes were made to address GCC -Wunused-parameter warnings.
These cases were masked when SMP was disabled.
2025-12-04 19:16:10 -05:00
Kinsey Moore
20faa90860 bsps/shared/dev/flash: Add a flashdev simulation backend
This adds a backend for flashdev that simulates a flash device with
adjustable delays to simulate real flash devices and offers
configurable flash parameters. This also migrates the JFFS2
filesystem tests to the flashdev framework and eliminates the
purpose-built simulated flash in the testsuite in favor of a more
generic and widely usable solution.
2025-12-04 14:12:55 -06:00
Kinsey Moore
1a99eb52dc bsps/shared/xnandpsu: Parameterize number of active chipselects
This makes the number of active chipselects a BSP configuration
parameter. The name of the macro in upstream source is misleading and
suggests that the driver can support up to the selected value when in
actuality it requires that number of chips to be present. If this number
of chips is not present, the driver will hang on initialization waiting
for a chip to respond that does not exist.
2025-12-03 08:25:50 -06:00
Kinsey Moore
ff52b009b5 bsps/shared: Add XNandPsu flashdev backend
Add a flashdev backend supporting the XNandPsu peripheral on ZynqMP
systems.
2025-12-03 08:25:50 -06:00
Sam Price
637c351743 bsp/microblaze-fpga: expose second AXI timer clock
Adds the registers that expose the second microblaze timer interrupt.
Moves the system clock to a shared interrupt so users may add a new
interrupt off the second interrupt.
2025-11-30 11:51:01 -05:00
Kinsey Moore
8f0f451c7a bsps/i386/pc386: Rename breakpoint() to avoid symbol conflicts
This renames the breakpoint() function to avoid conflicts with LibBSD
symbols.
2025-11-25 14:37:26 -06:00
Kinsey Moore
54de3ac479 bsps/shared/xqspi_flash.c: Add support for sector information 2025-11-10 12:29:31 -06:00
Joel Sherrill
7ab332d86f bsps/shared/ofw/ofw.c: Correct comparisons of different signedness
The GCC warning -Wsign-compare flagged these instances of comparing
signed and unsigned types. A common pair was size_t and int.
2025-11-06 10:26:10 -06:00
Joel Sherrill
88bce4ee7f grlib/uart/apbuart_cons.c: Correct comparisons of different signedness
The GCC warning -Wsign-compare flagged these instances of comparing
signed and unsigned types. A common pair was size_t and int.
2025-11-06 10:25:50 -06:00
Joel Sherrill
a4333a4361 bsps/shared/dev/serial/*.c: Correct comparisons of different signedness
The GCC warning -Wsign-compare flagged these instances of comparing
signed and unsigned types. A common pair was size_t and int.
2025-11-06 10:22:51 -06:00
Joel Sherrill
38367143fe mcf5235/console/console.c: Correct comparisons of different signedness
The GCC warning -Wsign-compare flagged these instances of comparing
signed and unsigned types. A common pair was size_t and int.
2025-11-06 10:20:02 -06:00
Thomas Wucher
af75447c1a bsps/powerpc: Fix ppc_exc_interrupt not saving r3 correctly
On SPE enabled builds the extended bits of r3 need to be saved
separately to the stack. Make ppc_exc_interrupt to do that correctly.

Fixes #5389
2025-11-04 13:37:25 +01:00
Aaron Nyholm
9340bf6bad bsps/xilinx-zynq/dev/spi/jedec_flash.h: Add MT25QL128ABA support
Added JEDEC ID table data for MT25QL128ABA and MT25QL128ABB
2025-10-31 17:08:01 +11:00
Sebastian Huber
03ae1fa930 bsps/irq: Fix type limits warnings
Set BSP_INTERRUPT_VECTOR_COUNT to 1 to avoid type limits and array
bounds warnings.

Make sure all functions using the default interrupt controller
implementation return a status of RTEMS_UNSATISFIED.

Update #5298.
Close #5377.
2025-10-29 07:16:41 +00:00
Sebastian Huber
2770bed227 bsps/tqm8xx: Fix integer expression warnings
Make sure we work with unsigned integer interrupt numbers.

Update #5378.
2025-10-29 05:05:49 +01:00
Joel Sherrill
9e8a8dff2e bsps/shared/dev/gpio/gpio-support.c: Address type limit warnings
GCC generates type limit warnings when comparison is always true or
always false due to the limited range of the data type, This was in a
termios structure. For most of the cases in RTEMS, this was when
a variable of an unsigned type was compared to be < or <= 0.
2025-10-28 19:33:35 +00:00
Joel Sherrill
31de2b300d bsps/powerpc/shared/irq/openpic.c: Address type limit warnings
GCC generates type limit warnings when comparison is always true or
always false due to the limited range of the data type, This was in a
termios structure. For most of the cases in RTEMS, this was when
a variable of an unsigned type was compared to be < or <= 0.
2025-10-28 19:33:35 +00:00
Joel Sherrill
a555b7d292 ss555/dev/console-generic.c: Address missing field initializer warnings
This was in a termios structure. The initialization was changed to using
named fields.

Updates #5325.
2025-10-28 12:55:15 -05:00
Joel Sherrill
ebcfc3db27 powerpc/shared/.../uart.c: Address missing field initializer warnings
This was in a structure describing Flash memory configuration.
The initialization was changed to using named fields.

Updates #5325.
2025-10-28 12:55:15 -05:00
Joel Sherrill
6900b048d8 powerpc/shared/.../uart.c: Address missing field initializer warnings
These were in a uart driver configuration structure.
The initialization was changed to using named fields.

Updates #5325.
2025-10-28 12:55:15 -05:00
Joel Sherrill
0ff1ea4ab4 motorola_powerpc: Address missing field initializer warnings
These were in declarations of board information structure with
initialization.  The initialization was changed to using named
fields.

Updates #5325.
2025-10-28 12:55:15 -05:00
Joel Sherrill
2999ec8607 beatnik: Address missing field initializer warnings
This was in a structure describing Flash memory configuration.
The initialization was changed to using named fields.

Updates #5325.
2025-10-28 12:55:15 -05:00
Aaron Nyholm
190899ee61 bsps/shared/jffs2_flashdev.c: Fixed fatal heap error on failed mount
Removed double free of mount_data and instance.
Closes #5381
2025-10-28 15:15:08 +11:00
Kinsey Moore
2cb47d2010 bsps/jffs2_flashdev: Return correct value for OOB size
Return the actual out of bounds size per page instead of the ioctl
return status. JFFS2 will happily operate with an OOB size of 0 and
instead put cleanmarkers in the normal page space of the flash.
2025-10-23 15:31:57 -05:00
Kinsey Moore
955d36ea47 bsps/qspi: Make flashdev control structure private
These structures are not required to be exposed to users for any
functionality and users of the API have no way to make use of them.
2025-10-16 11:26:52 -05:00
Joel Sherrill
62e0865bcc bsps/powerpc/shared/clock/p_clock.c: Fix compile error
The error was referencing a field in the rtems_irq_connect_data
structure which only existed when BSP_SHARED_HANDLER_SUPPORT is
enabled.

Updates #5325.
2025-10-15 14:34:39 +00:00
Joel Sherrill
f6e7b3bfbf bsps/powerpc: Address missing field initializer warnings
Address missing field initializer warnings.

These were all rtems_irq_connect_data declarations with initialization.
The initialization was changed to using named fields and specifying an
initializer for each field.
2025-10-12 11:33:47 -05:00
Joel Sherrill
d9e156f3a3 pc386/uart_bus_pci.c: Address missing field initializer warnings
Address missing field initializer warnings.

This code originated from FreeBSD and only some initializers are
missing the last field. It is best to avoid modifying the code so
the warning is disabled for this array initialization.
2025-10-12 10:42:37 -05:00
Joel Sherrill
243c25d191 bsps ACPI: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.

The ACPI change set includes two headers which define debug macros. When
not building for debug, the instantiated inline functions generate
unused parameter warnings from every file they are included in. The
warning was disabled around the macro instantiations.
2025-10-10 22:04:38 +00:00
Joel Sherrill
eb6af2871e bsps i386: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:03:23 +00:00
Joel Sherrill
0c97eb1d48 arm/xilinx-zynqmp-rpu: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00
Joel Sherrill
754b10289c arm/xilinx-zynqmp: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00
Joel Sherrill
d379aa996b arm/xilinx-zynq: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00
Joel Sherrill
8acbcad50c arm/tms570: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00
Joel Sherrill
dcde65029b arm/stm32u5: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00
Joel Sherrill
94475b3386 arm/stm32h7: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00
Joel Sherrill
004e3b7bbc arm/stm32f4: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00
Joel Sherrill
c9c04ebdea arm/smdk2410: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00
Joel Sherrill
2690e9335b arm/shared: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00
Joel Sherrill
b5c952e6b6 arm/rtl22xx: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00