Commit Graph
38036 Commits
Author SHA1 Message Date
Shivam Deolankar b41f83249a bsps/zynq-uart: fix parity configuration handling
Fix parity handling in zynq_uart_set_attributes() by clearing existing
parity bits before setting a new mode instead of always ORing PAR_NONE,
which caused incorrect or ignored parity; also fix inverted PARODD logic
and add ZYNQ_UART_MODE_PAR_MASK to manage the parity field correctly.

Fixes #5554
2026-05-18 14:13:59 -05:00
Chris Johns 2c39475802 libmisc/shell: Add -a to print all vars in the shell getenv command
Closes #5572
2026-05-16 09:40:59 +10:00
Gedare Bloom ce03478700 testsuites/validation: check exactly for unset priority
The use of less-than-or-equal is wrong when the default priority can be
greater than the PRIORITY_UNSET value.
2026-05-15 13:40:17 -06:00
Gedare Bloom d3a6a6540e testsuites: fix usage of rtems_test_spin_for_ticks
The rtems_test_spin_for_ticks( x ) executes one partial tick and the
remaining x - 1 as complete ticks. Some tests assumed it executed x
complete ticks. Fix those tests.

Fixes #5575.
2026-05-15 12:59:10 -05:00
Mohamed Ayman 8f59e18ea3 riscv: fix FDT length check and FDT pointer type
Fix incorrect comparison between fdt_getprop() length (bytes)
and address cells count.
The check now uses ac * sizeof(uint32_t) to avoid
reading invalid data.

Also change FDT pointer type from const char * to const void *
to match libfdt API.

No functional changes.
2026-05-15 14:46:48 +00:00
Michal Lenc 3cb2e57560 cpukit/dev/can: fail controller init if worker task start doesn't start
CAN controllers need a running worker task to function. Check if
the task is actually started and return NULL (and free already allocated
resources) if it fails.

Also assert if cleanup functions fail.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2026-05-14 15:46:10 +00:00
Samuel Viegas 24eb4ac11a bsps/leon3: Mark interrupt 15 as non-maskable
- leon3 interrupt vector 15 is non-maskable and should
not be reported as disable-capable.

- added leon3_interrupt_is_maskable function, and
used it to set can_disable and maybe_disable in
bsp_interrupt_get_attributes().

- added verification for non-maskable vectors in
bsp_interrupt_vector_disable(), which is rejected
with error RTEMS_UNSATISFIED.

Updates #4830.
2026-05-14 15:42:35 +00:00
Gedare Bloom 2ed6cfbbd5 spec/riscv: fix abspath to riscv-mmu.h
Fixes #5571
2026-05-13 16:08:41 +10:00
Gedare Bloom 18e441c75b riscv: add helper for sfence.vma
Wraps sfence.vma 0, 0 in a function for TLB flushing.
Also disables compiling mmu-setup.c if S-mode is not enabled.

Updates #5540
2026-05-13 16:06:34 +10:00
Gedare Bloom 22673994c3 riscv: add helper functions for inline asm fence/barrier
Adds IO store-release and data barrier helpers.

Closes #5544
2026-05-13 16:06:34 +10:00
Chris Johns a73c6034eb powerpc/beatnik: Support generic IRQ
This effects the MVME6100 and MVME5500.

Closes #5567
2026-05-12 14:46:33 -05:00
Sebastian Huber 9cea931dfc score: Clarify _Thread_Priority_apply()
Add an assertion to help static analyzers.
2026-05-12 13:56:37 -05:00
Gedare Bloom 8bee39f21c riscv: add mstrict-align for mpfs and beaglevfire
The cores of the polarfire do not support misaligned access. Add
-mstrict-align to the ABI flags.

Updates #5286
2026-05-11 11:39:02 -06:00
Gedare Bloom 1b743eb9d7 cpukit/libdebugger: reformat to LLVM style
Closes #5343
2026-05-08 09:19:53 -05:00
Sunil Hegde 02f00a9e3b bsps/shared: Fix formatting in z85c30.c and mc68681.c
Fix formatting as suggested by the pipeline, no functional
changes were made.
2026-05-08 15:04:59 +10:00
Sunil Hegde f8b023df3a bsps/shared: removed uses and prototypes of set_vector()
removed uses of set_vector() accross two shared files,
i.e. mc68681.c and z85c30.c
the shared/start/setvec.c has been deleted too.

Closes #5215
2026-05-08 15:04:59 +10:00
Sunil Hegde 91b3c9136b bsps/powerpc: removed set_vector reference from a README.md file
shared/vme/README.md had references to set_vector() for installing
isr during vme driver setup. They have been replaced by
rtems_interrupt_handler_install().

Updates #5215
2026-05-08 15:04:59 +10:00
Kinsey Moore 15774ab4e0 cpukit/libdl/aarch64: Resolve maybe-unused warning 2026-05-07 11:14:48 -05:00
Kinsey Moore eb30dfcc2d bsps/riscv/esp32: Only provide UART functions when needed 2026-05-07 11:14:48 -05:00
Joel Sherrill ab6d8439ff libfs/src/dosfs/msdos_conv.c: Fix may be used uninitialized warning
Moved variable "c" to scope closer to use and initialized it to 0.
2026-05-07 09:55:43 -05:00
Joel Sherrill c65ea8e86f bsps/shared/.../gpio-support.c: Address maybe uninitialized warning
This code was flagged as maybe-uninitialized when compiling at -Og.
The underlying problem was functional code in an assert(). If
compiled with asserts disabled, there would have been no mutex
lock/unlock. Changed the macros to obtain and release the mutex
independent of assert() being enabled or not and switched to using
the RTEMS assert _Assert() which lets this check follow the
RTEMS_DEBUG setting.
2026-05-06 14:46:12 -05:00
Joel Sherrill e502e80467 bsps/riscv/shared/fdt/riscv-fdt.c: Fix may be uniitialized warning
The variables start and size were used in the return statement
even if none of the if's set them. Defaulted them to zero which
results in returning NULL on error which was expected anyway.
2026-05-05 17:32:26 -05:00
Gedare Bloom 0c7ee5033d contrib/riscv: add zicsr option to csr macros
These were local changes in the riscv-utility.h but got missed
during the refactor. Fixes build error for riscv.
2026-05-03 10:35:13 -06:00
Gedare Bloom 7fa05a688b spec/riscv: add MMU options and enable in build
Fixes #5540
2026-05-01 15:55:50 +00:00
Gedare Bloom 8c4bddaae7 riscv: add initial support for MMU setup
Creates level-2 mappings for the configured RAM region and for the
MMIO device region. Each of these two regions is configured as a
level-1 table with 2 MiB superpages.

Updates #5540.
2026-05-01 15:55:50 +00:00
Gedare Bloom 962dfc8676 riscv: use unsigned comparison for address check
The comparison of a register to see if it holds a number less than
3 needs to be unsigned since the register is otherwise expected to
hold an address that could have the most significant bit set.

Fixes #5561
2026-04-30 17:02:07 -05:00
Gedare Bloom fd53b09378 riscv: refactor riscv-utility.h
Include contrib/riscv-opcodes/encoding.h from riscv-utility.h and
remove outdated contents from riscv-utility.h
This will allow the include guards to work properly for users (or HAL code)
that also use the encoding.h file, while still allowing us to provide
additional customization or extension of encoding.h macros.
2026-04-29 12:47:37 -06:00
Gedare Bloom 18477b284a contrib/cpukit: import riscv-opcodes/encoding.h
Upstream repo: https://github.com/riscv/riscv-opcodes
Upstream hash: 15cc83ee533cc57c92903afb046c2732f92f79b3
URL: https://raw.githubusercontent.com/riscv/riscv-opcodes/15cc83ee533cc57c92903afb046c2732f92f79b3/encoding.h

The upstream does not provide releases.

tag: contrib/cpukit/riscv-opcodes/2026-04-28-15cc83e
contrib/cpukit/riscv-opcodes/2026-04-28-15cc83e
2026-04-29 12:47:37 -06:00
Pavel Pisa 48d8b2bdea cpukit/dev/can/sja1000: fix build failure on i386 with I/O option
Disable PCI/PCIe and other buses I/O mapped access
because rtems/cpukit build is not allowed to access
BSP specific headers during build.

rtems/bsps/i386/include/i386_io.h

Cannot be used.

This is temporal workaround for

rtems/rtos/rtems#5563

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2026-04-29 02:41:08 +02:00
Avi Weiss a52cdca1c9 tms570: fix typos and clean-up reg_crc.h comments
Noticed TMS570_CRC_REGH1 was mislabeled as a low registers, and
decided to clean up the other out-of-date comments along the way.

No code changes - documentation only.

Issue: no issues opened for minor documentation change
2026-04-28 16:52:30 +00:00
Michal Lenc 558615a28e cpukit/dev/can/ctucanfd/ctucanfd.c: fix typo
folowing -> following in license header

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2026-04-27 21:26:51 -05:00
Michal LencandPavel Pisa df346b439b can: add support for SJA1000 CAN controller
This commit adds support for a stand alone SJA1000 CAN controller. This
is classical CAN only capable controller, so no FD support here. The
driver's implementation is similar to CTU CAN FD, thus interrupt handler
triggers a semaphore in main worker thread that takes care of handling
interrupts and receiving and sending messages.

The controller utilizes its one TX buffer for sending messages with
abort function available if higher priority message is present in
the software queue.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
Co-authored-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
2026-04-27 21:26:51 -05:00
Samuel Viegas 1f92e9f89f bsps: Fix variable type for clkirq
- clkirq is used as an interrupt vector number.

- clkirq is now of type rtems_vector_number instead
of int and the now-unneeded cast in irqmp_ts->control
has been removed.

- This aligns the variable type with
the RTEMS interrupt API and avoids signed/width
conversion issues.

Update #4816.
2026-04-27 20:15:44 +00:00
Avi Weiss 1d90aa13b7 bsp/arm/tms570: protect against baud divide by zero
tms570_sci_set_attributes has no protection against 0 baud rate
rtems_termios_baud_to_number documentation shows it can return 0
Can result in divide by zero inside tms570_sci_set_attributes in
at least one or two locations (and then also
tms570_sci_interrupt_last_close).
Also adds defensive final break in switch in parity bit switch.
2026-04-24 16:03:07 +02:00
Avi Weiss 7e4ab139d0 bsp/arm/tms570: correct typos in sci.c 2026-04-24 16:03:07 +02:00
Avi Weiss 2b8b67a993 bsp/arm/tms570: apply RTEMS clang format to sci.c 2026-04-24 16:03:07 +02:00
Avi Weiss f9fd19ff7d bsp/arm/tms570: align printk-support with rtems formatting guidelines 2026-04-24 08:42:58 +02:00
Avi Weiss 2679fde8de bsp/arm/tms570: update printk function headersto improve clarity 2026-04-24 08:35:45 +02:00
Avi Weiss 4c73e7f998 bsp/arm/tms570: remove wait for empty in printk out
Removes the unnecessary wait for TX EMPTY in the printk out path.
According to the documentation, TXRDY indicates the output buffer is ready
to receive data.
This change saves a bit of time in printk's but more so just removes an
unnessesary check not required by the hardware.
2026-04-24 08:33:46 +02:00
Samuel Viegas 3889ed31d4 bsps: Fix input data type on irq-generic.c/.h
- Constify bsp_interrupt_entry_find()

- bsp_interrupt_entry_find does not modify
the object referenced by arg, it only compares
pointer values against it.

- changed the parameter type from void* to
const void* in both declaration and
definition to make it correct and safer.

Update #4816
2026-04-23 13:38:23 +00:00
Kinsey Moore c5678f549f spec/aarch64/zynqmp: Restore orphaned configuration file 2026-04-22 07:21:54 -05:00
Kinsey Moore 25d99a6e5e bsps/xqspipsu: Avoid function casting 2026-04-22 07:21:54 -05:00
Kinsey Moore 987fd6f834 bsps/xqspipsu: Fix sign mismatch 2026-04-22 07:21:54 -05:00
Joel Sherrill 94aefc01e1 fstests/mrfs_support/fs_support.c: Eliminate obsolete syntax
Structure Designated initializers must use ".field = value" instead
of obsolete "field : value" syntax.
2026-04-21 16:28:02 -05:00
Joel Sherrill eda848d521 testsuites/samples/fileio/init.c: Eliminate obsolete syntax
Structure Designated initializers must use ".field = value" instead
of obsolete "field : value" syntax.
2026-04-21 16:28:02 -05:00
Joel Sherrill c3c97d8ab0 bsps/powerpc/tqm8xx/spi/spi.c: Eliminate obsolete syntax
Structure Designated initializers must use ".field = value" instead
of obsolete "field : value" syntax.
2026-04-21 16:28:02 -05:00
Joel Sherrill 31a70f3853 bsps/powerpc/shared/vme/vme_universe.c: Eliminate obsolete syntax
Structure Designated initializers must use ".field = value" instead
of obsolete "field : value" syntax.
2026-04-21 16:28:02 -05:00
Joel Sherrill 69f0e336ba bsps/powerpc/shared/vme/vmeUniverse.c: Eliminate obsolete syntax
Structure Designated initializers must use ".field = value" instead
of obsolete "field : value" syntax.
2026-04-21 16:28:02 -05:00
Joel Sherrill 5782ffd72f bsps/powerpc/shared/vme/vmeTsi148.c: Eliminate obsolete syntax
Structure Designated initializers must use ".field = value" instead
of obsolete "field : value" syntax.
2026-04-21 16:28:02 -05:00
Joel Sherrill 5b6451729c bsps/powerpc/shared/start/vpd.c: Eliminate obsolete syntax
Structure Designated initializers must use ".field = value" instead
of obsolete "field : value" syntax.
2026-04-21 16:28:02 -05:00