Commit Graph

37580 Commits

Author SHA1 Message Date
Joel Sherrill
fc6cc44de9 cpukit/libdl: 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:46:23 -05:00
Joel Sherrill
2ba90abb80 spec/.../microblaze_fpga/grp.yml: Delete duplicate optuartirq.yml
For some reason, optuartirq.yml was included twice and this
breaks configuration.

Updates #5376,
2025-12-04 17:42:02 -06: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
710a6e124e cpukit/jffs2,spec: Add summary support to the build
This adds summary support to the build with a global option to enable
this support and necessary changes to the imported summary support
source to integrate it into the build system and resolve errors.
2025-12-03 15:48:56 -06:00
Kinsey Moore
e3b9015bfa cpukit/jffs2: Import summary support and direct write helpers
This imports the unmodified summary.c and writev.c support files from
upstream matching the current version of other imports.
2025-12-03 15:48:56 -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
Karthikey Kadati
0b20605792 sparc: Remove redundant 'register' specifier from cpuimpl.h
This patch removes the redundant register keyword and switches to inline
assembly for g7 assignment as per review feedback.
2025-12-02 12:11:52 -06:00
Kinsey Moore
7cc3bb777c cpukit,spec: Swap JFFS2 to zlib CRC32
Move JFFS2 from the Cygwin implementation of CRC32 to the zlib
implementation which can take advantage of hardware acceleration and
reduces code duplication. Synthetic benchmarks on AArch64 hardware show
approximately a 17x improvement in CRC32 calculation speed and
real-world testing with JFFS2 shows a 1% improvement in mount times, a
5% improvement in data write times, and a 9% improvement in garbage
collection times.

A test was written to compare hash generation between the two algorithms
and a partition was created with one and then remounted with the other
with no errors.
2025-12-02 08:59:37 -06:00
Sepehr Ganji
330c70c565 libfs/fatfs: Update FatFS to R0.16
This updates the FatFS to R0.16 revision
of upstream and updates the cppflags.
2025-12-01 09:16:31 -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
Sam Price
e96fd2398b MicroBlaze RTL: handle MB 33 and add rtl log
- puts the last rtl errorr message out near end of rtl messge.
- Also adds microblaze type 33 to microblaze handler
2025-11-28 01:01:57 -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
Martin Erik Werner
e727b24ea3 cpukit: Add msg broadcast non-atomicity to doc
rtems_message_queue_broadcast() may, under certain circumstances, copy
the message to tasks which were not waiting on the message queue when
the broadcast started, and may copy the message multiple times to the
same task.

This behaviour is, based on discussion in #4804, something that might
not change in the short term, so expose it in the user documentation.

The wording is copied with modifications from an existing internal
requirements note.

Also correct "none-atomic" -> "non-atomic" in said internal requirements
note.

The changes were auto-generated from rtems-central.
2025-11-20 22:09:39 -06:00
Gedare Bloom
802b761ef6 sptest/spedfsched03: verify priority APIs for EDF
Ensure that deadline-driven tasks return a priority of 0, and
that maximum priority values are configurable.

Updates #5390.
2025-11-17 16:26:11 -07:00
Gedare Bloom
11278685f6 testsuites/validation: use default max priority
Updates #5390.
2025-11-17 16:25:27 -07:00
Gedare Bloom
22e9ccdda2 smptests/smpscheduler02: use default max priority
Updates #5390.
2025-11-17 16:25:27 -07:00
Gedare Bloom
c951686b13 cpukit: Use CONFIGURE_MAXIMUM_PRIORITY with EDF
Uses the CONFIGURE_MAXIMUM_PRIORITY to set the priority range for
EDF and CBS schedulers under the control of applications.
The default priority behavior is now the same as other schedulers.
The user API to get a task's current priority returns 0 for deadline
driven tasks.

Fixes #5390
2025-11-17 16:25:27 -07:00
Sepehr Ganji
bff18c05b9 libfs/fatfs: Add FatFS with tests
This adds FatFS wrapper layer to RTEMS
including tests as part of GSoC 2025.
2025-11-10 16:09:07 -07:00
Kinsey Moore
e3592620d7 cpukit/flashdev: Return error for missing callbacks
When a callback does not exist, the Flashdev API should return error
where possible instead of success. When the API returns success for
missing callbacks, the Flashdev API client code may end up using
uninitialized variables as if they were filled by the API.

Closes #5391
2025-11-10 12:29:32 -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
Aaron Nyholm
0e20f50870 testsuites/fstests/fsclose01: Fix expected flags
close() now holds a reference to the IOP this changes the
expected flags in the test. This change reflects that.
Updates #5311
2025-11-05 19:50:46 +00: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
Kinsey Moore
2179cd2fee cpukit/libdebugger: Address clobbered warnings
Move variable assignments after the setjmp() call where possible and
move macros that contain setjmp into an if() clause since assigning the
return value to a variable is undefined.

Updates #5364
2025-11-02 21:26:43 -06: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
e45e0d2e5b validation: Address unused parameter
Mark the parameter as unused in uniprocessor configurations.
2025-10-29 07:16:41 +00: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
ed38fadfbe spec/build/cpukit/optwarn.yml: Warning flags to match current state
All but ~50 warnings have been fixed if you account for unmerged
MRs. These settings should give a warning free build given the
current state.

       Warnings by Type
=================================
   2 -Wshift-negative-value
   3 -Wenum-conversion
   7 -Wcast-function-type
   7 -Wmissing-field-initializers
   8 -Wclobbered
  32 -Wtype-limits
2025-10-28 19:58:06 +00:00
Sebastian Huber
b2ca47e5a1 validation: Address unused parameters
Address unused parameters in the code generator.
2025-10-28 19:54:03 +00:00
Sebastian Huber
ce741f81cb validation: Do not use reserved "ctx" name
The name "ctx" is reserved for the test context.
2025-10-28 19:54:03 +00:00
Sebastian Huber
82ad3746f9 validation: Remove unused parameters
Remove actually unused parameters which would have been flagged by a
warning.
2025-10-28 19:54:03 +00:00
Sebastian Huber
e66a33fd7a validation: Address -Wclobbered warnings
Use functions with const parameters and const local variables
to silence -Wclobbered warnings.

Updates #5364.
2025-10-28 19:52:56 +00:00
Joel Sherrill
c49cfbf9a9 testsuites/psxtests/*/init.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
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
Joel Sherrill
cfc9ee2e60 libdebugger/rtems-debugger-*.c: Address ignored qualifier warnings
GCC generates a warning when the return type of a function has a type
qualifier such as 'const'.
2025-10-17 15:08:47 -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