Commit Graph
37640 Commits
Author SHA1 Message Date
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
Sam PriceandAlex White f7116eee20 microblaze: add AXI timer benchmark support
Add AXI timer definitions and a BSP btimer implementation and
install them in the microblaze_fpga BSP.

Co-authored-by: Alex White <alex.white@oarcorp.com>
2025-12-08 08:57:24 -06:00
Mazen Adel Elmessady ff63275812 cpukit/posix: Add timespec_get() support to RTEMS
Added the implementation of timespec_get() with tests.
The implementation used clock_gettime() as a reference.
The tests used psxtimes01 as a reference.

Updates
rtems/programs/gsoc#69
2025-12-05 17:00:55 -05:00
Martin Erik Werner a72c0e0583 spec: Ensure -msoft-float is in make linking flags
In order for the linker to pick the correct soft-float libraries when
building for a target without an FPU the -msoft-float flag needs to be
present.

This is already the case in the pkg-config file where ABI_FLAGS are
included in Ldflags:

  Ldflags: ${ABI_FLAGS} -B${libdir} -qrtems -Wl,--gc-sections

But this is not present in the custom make includes:

  LDFLAGS = -B$(exec_prefix)/$(RTEMS_BSP)/lib -qrtems -Wl,--gc-sections

The RTEMS template make rule for linking includes all of CFLAGS:

  define bsp-link-c
  	$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
  	    -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)
  endef

The standard (GNU) built-in make rule for linking does not include
CFLAGS when linking:

  $(CC) $(LDFLAGS) $* $(LOADLIBES) $(LDLIBS) -o $@

Add ABI_FLAGS to LDFLAGS in the custom make includes such that building
soft-float applications works with the default built-in make rules as
well.
2025-12-04 19:02:42 -06:00
Joel Sherrill a37204f86f tmtests/tm05/task1.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-12-04 18:58:44 -06:00
Joel Sherrill e4a63b12d5 testsuites/psxtests: 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-12-04 18:58:44 -06:00
Joel Sherrill 16234ea47b libtests/tar01/init.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-12-04 18:58:44 -06:00
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
Joel Sherrill e715ddc63c testsuites/.../tc-timecounter-install.c: Address << of negative value
This change was made to address GCC -Wshift-negative-value.
Shifting a negative value is undefined in the C programming language
because one's and two's complement representations give different
results.

Closes #5385.
2025-12-04 18:47:30 -06: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 cc9aa4b748 ino_t printf() cases: Add PRIdinod_t for ino_t format specifier
The sizeof(ino_t) can potentially vary based on the target. This
resulted in -Wformat warnings. Add PRIdino_t in <rtems/inttypes.h>
to have a portable format specifier.

Closes #5393.
2025-12-04 18:41:19 -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
Joel Sherrill f794dc4267 spec/../*yml: Add fatfs tests to multiple BSP test excludes
Multiple BSPs do not have the memory required to link the
FATFS tests. Added these tests to tstsmallmem.yml and multiple
individual BSP tst excludes.
2025-12-04 19:06:12 -05:00
Joel Sherrill 136f739ff9 cpukit/.../rtems-fdt/rtems-fdt-shell.c: Fix format specifier warning
This was using a * to specify the field width. The value passed
should be an int.
2025-12-04 17:56:14 -06:00