2059 Commits

Author SHA1 Message Date
Joel Sherrill
28cef0e987 bsps/.../motorola_powerpc/bootloader/zlib.c: Fix old-style prototypes
This zlib source is a hacked down version just for the decompression
phase for the bootloader used by this family of BSPs. The proper
fix is to redo the hackery with a new version of zlib. But that
is risky so this is just addressing the warnings.

Updates #5276
2025-06-24 20:22:26 +00:00
Shaunak Datar
d4755476bc bsp/aarch64/raspberrypi4: Add PWM peripheral support
This commit adds support for the PWM peripheral on the aarch64/raspberrypi BSP.
2025-06-20 20:53:28 +05:30
Joel Sherrill
6876262a44 bsps/mips/hurricane/clock/ckinit.c: Address type mismatch
GCC 14 generates an error for the wrong signature function being
passed in. The underlying type was a void * so adjusting the
signature of the ISR handler was not an option. Added cast.

Closes #5272
2025-06-19 23:37:39 +00:00
Joel Sherrill
734208a49b bsp/shared/atomics: New directory
Provide missing GCC atomics helpers as part of BSPs where GCC
does not know how to provide it since the CPU's ISA has no
atomic instructions. The implementation provided in
bsps/shared/atomics/__atomic_test_and_set.c should work
on any single core CPU.

The BSPs that need thie function tend to have older cores. This
is the list of BSPs:

arm - csb336, csb337, csb637, edb7312, gumstix, kit637_v6, lpc24xx_ea,
  lpc24xx_ncs_ram, lpc24xx_ncs_rom_ext, lpc24xx_ncs_rom_int,
  lpc24xx_plx800_ram, lpc24xx_plx800_rom_int, lpc32xx_mzx,
  lpc32xx_mzx_stage_1, lpc32xx_mzx_stage_2, lpc32xx_phycore,
  rtl22xx, rtl22xx_t, smdk2410
m68k - av5282, mcf5329
mips - jmr3904
moxie - moxiesim
nios2 - nios2_iss
riscv - grv32i, grv32im, niosvc10lp, noel32im, rv32i, rv32im,
sparc - ut699
2025-06-19 23:30:57 +00:00
Shaunak Datar
1c9e91d25b bsp/aarch64/raspberrypi: Fix the formatting for raspberrypi.h
Change the formatting of the include/bsp/raspberrypi.h file to comply
with the RTEMS formatting guideline. No functional changes are made.
2025-06-19 22:47:57 +00:00
Joel Sherrill
7eb39e3e8d bsps/powerpc/*/include/tm27.h: Use formatter suggestions
Applied suggested formatting changes to the following files which
were modified for technical reasons in the previous commit.

    bsps/powerpc/gen5200/include/tm27.h
    bsps/powerpc/mvme5500/include/tm27.h
    bsps/powerpc/psim/include/tm27.h
2025-06-11 14:19:06 -05:00
Joel Sherrill
0f99dd5d25 bsps/powerpc/*/include/tm27.h: Correct IRQ installation structure
The gen5200, mvme5500, and psim BSP families had an implementation of
tm27.h which used stub functions with casts as null handlers to fill
in the IRQ structure. The IRQ structure as also missing a field. The
change was to use a set of appropriately signatured stub functions
and correct the structure initialization.

This code likely has produced warnings for a long time but with
GCC 14, these warnings turned into errors.

Closes #5266
2025-06-11 13:11:27 -05:00
Kinsey Moore
4848d7ab73 aarch64/raspberrypi4: Perform reset using watchdog
This updates the AArch64 Raspberry Pi BSP to use the watchdog to perform
the system reset instead of attempting to use the PSCI reset which isn't
present on the Raspberry Pi platform.
2025-06-10 21:25:35 -05:00
Mohd Noor Aman
7f30da6ec4 bsps/aarch64/raspberrypi: Add SMP Support 2025-06-10 21:25:35 -05:00
Matteo Concas
8915b72068 grlib/pci: Use unsigned integer for interrupt number
Closes Coverity 1642585
2025-06-10 18:53:04 +00:00
Jeremy Lorelli
12455d8a93 bsps/powerpc: Undef BSP_SHARED_HANDLER_SUPPORT before defining it again
Fixes a redefinition warning
2025-06-10 18:39:46 +00:00
Jeremy Lorelli
f354bfc07f m68k/uC5282/bspstart.c: Refactor/cleanup of some bsp start code
* Cleaned up the uC5282 ISR stuff to make the casts and whatnot more
  readable. Also made the offsets relative to the VBR (which is at 0x0
  for this BSP) to silence a GCC warning.

* Refactored the default exception handler to map a struct to the stack
  instead of taking the address of pc and under-indexing it. The
  compiler was not particularly happy about the previous implementation.
2025-06-10 17:55:04 +00:00
Prithvi Tambewagh
12f5c780c2 leon: Include leon.h to resolve undefined leon_r32_no_cache
Include leon.h in bsp.h for providing reference to leon_r32_no_cache - leon3 BSP
2025-06-10 15:01:02 +00:00
Chris Johns
b0eb259377 bsps/shared/dev/ide: Initalise ATA request links as off chain
- Fixes the asserts when building with RTEMS_DEBUG

Closes #5253
2025-06-05 23:19:48 +00:00
Lucian Silistru
7ec18af86c bsps/riscv: use lw to load _SMP_Processor_configured_maximum on rv64
_SMP_Processor_configured_maximum is 32 bit, LREG macro is ld on rv64,
lw on rv32. Changing the load to explicit 'lw' to always load 4 bytes

Closes #5251
2025-05-29 22:49:11 +00:00
Amar Takhar
662ad275f7 ascii: Remove non-ASCII characters from names
There are only the 3 names in our entire source that use non-ASCII characters.
Our documentation can still use any type of character.  We want to limit source
to ASCII for safety reasons.
2025-05-22 19:35:12 +00:00
Amar Takhar
b714e4a809 ascii: Remove non-ASCII characters
We will soon be enforcing ASCII-only characters for source.
2025-05-22 19:35:12 +00:00
Amar Takhar
b2b8b2604a encoding: Fix encoding for 3 files
board_memories: WINDOWS-1250
aes.c: ISO-8859-3
sdramc.c: WINDOWS-1250

These have been converted to utf-8 with the broken characters fixed.  The
original encoding is wrong and has been corrupted.  Now they are ASCII.
2025-05-21 20:06:29 -04:00
Amar Takhar
70ad0926b0 readme: Convert to ASCII
Convert table to ASCII
2025-05-20 13:05:47 -04:00
Matteo Concas
24a3ae9fa5 grlib/spwtdp: Remove DEBUG flag
This flag should not be enabled by default
2025-05-06 19:30:06 +00:00
Joel Sherrill
44b61ba51f m68k/uC5282/bspstart.c: Minimum fixes for lines > 80 columns
The file uses tabs and that was not addressed.
2025-05-06 17:35:58 +00:00
Joel Sherrill
497af62f84 uC5282/start/bspstart.c: Correct printk() specifier
printk() specifier was for unsigned long but the number was just an
unsigned int.
2025-05-06 17:35:58 +00:00
Joel Sherrill
2634edb790 /amd64/start/bspstart.c: Fix unused variable warning.
acpi_table_result was only used in the debug build.
2025-05-06 17:31:24 +00:00
Joel Sherrill
69b72bb9df bsps/arm/stm32h7/dma/dma-allocator.c: Fix unused variable warning
Updates &20
2025-05-05 18:34:27 +00:00
Joel Sherrill
ae5655b88b bsps/arm/stm32h7/hal/*: Fix pointer and integer comparison warnings
The HAL code would compare to "0U" instead of NULL.

Updates &20
2025-05-05 18:34:27 +00:00
Joel Sherrill
64070bdf66 bsps/arm/stm32h7: Address missing prototype for SystemInit_ExtMemCtl
Updates &20
2025-05-05 18:34:27 +00:00
Joel Sherrill
3a5069ced6 niosvc10lp/../altera_avalon_sysid_qsys_regs.h: Convert to UNIX format
Accidentally committed in DOS format.
2025-03-19 13:38:36 +00:00
Jeremy Lorelli
2623dac93c beatnik/include/bsp.h: Fix eeprom/ds1621 device names
The device names were using ', ' in place of '.'.
It seems like this was a mistake made during a refactor.
2025-03-14 09:00:00 -07:00
Kinsey Moore
4fb6342a42 bsps/dev/irq/arm-gic: Document the GICD_IROUTER offset
The GICD_IROUTER register technically starts at offset 0x6000, but the
first 32 IRQ entries are reserved making IRQ 32's entry at 0x6100 the
first usable entry. This register is not currently used, so only a
comment is added to that effect.

Closes #5223
2025-03-13 22:31:23 +00:00
Joel Sherrill
98d38900aa bsps/or1k/generic_or1k: Relicense to 2-BSD
Hesham Almatary has given permission to relicense to 2-BSD.

Updates #3053.
2025-03-13 18:57:12 +00:00
Joel Sherrill
31715959fe raspberrypi/include/bsp/irq.h, raspberrypi.h: Relicense to 2-BSD
These files were written by a combination of contributors who have
given permisison to relicense.

Updates #3053
2025-03-13 14:57:49 +00:00
Joel Sherrill
a4774bb79d moxiesim/console/console-io.c: Relicense to 2-BSD
This file was written by Anthony Green and OAR who both have given
permisison to relicense.

Updates #3053
2025-03-13 14:54:06 +00:00
Joel Sherrill
9fea354de8 powerpc/ss555: Correct prototype of Clock_isr
The argument is now a void * and this was not reflected in the
prototype or implementation. The argument was unused so this
has no functional impact.
2025-03-13 06:27:35 +00:00
Joel Sherrill
9e05cd72c5 mvme147s: Remove as obsoleted
Updates #5031
2025-03-13 06:12:15 +00:00
Kinsey Moore
ece058c6a3 bsps/m68k/shared: Remove unreferenced gdb stub
Closes #5213
2025-03-10 22:32:30 +00:00
Gedare Bloom
0149e6e749 spdx: add 2-BSD SPDX tags on relicensed files
Updates the recently merged relicensed files with the 2-Clause BSD
SPDX annotation.

Closes #5208.
2025-03-01 04:14:54 +00:00
Gedare Bloom
e463f8c968 powerpc: Relicense to 2-BSD
This batch of relicensing was enabled by the combination of Eric
Valette and Andy Dachs giving permission.

Updates #3053
2025-03-01 00:40:17 +00:00
Joel Sherrill
52b9cc90cb bsps/sparc/leon3/start/setvec.c: Fix set_vector() warning
This was flagged by GCC 14
2025-02-24 16:47:52 -06:00
Joel Sherrill
04db5eaee1 bsps/shared/start/setvec.c: Fix warning across multiple BSPs
GCC 14 flags this method with a warning.
2025-02-24 16:46:58 -06:00
Joel Sherrill
330d011318 m68k/shared/cache/cache-*.c: Remove unused variants
With the removal of multiple m68k and Coldfire BSPs, these cache
implementatoin variants were no longer referenced.

Updates #5031
2025-02-12 22:09:41 +00:00
Joel Sherrill
807584adfd m68k/shared/fpsp: Remove obsolete m68040 FP Support Code
The Motorola MC68040 did not completely implement IEEE754 in hardware.
The FPSP code was required to complete the support. With no more
MC68040 BSPs in RTEMS, this code can be removed.

Updates #5031
2025-02-12 12:51:58 -06:00
Joel Sherrill
d33aba4a8d bsps/arm/shared/cp15/arm920-mmu.c: Fix array overwrite
An extern for the linker symbol _ttbl_base was declared incorrectly
and gcc reported an overwrite of the four byte area by 16K. Switched
to using the standard linker symbol macros and the warning was
removed.
2025-02-10 15:47:10 +00:00
Joel Sherrill
a7dd196f01 csb337/umon/tfsDriver.c: Fix warning for possible string too long
GCC detected this.
2025-02-10 15:47:10 +00:00
Joel Sherrill
56c8d65b30 csb337/umon/tfsDriver.c: Fix warning for ioctl cmd parameter
The cmd parameter was uint32_t and should have been ioctl_command_t.
2025-02-10 15:47:10 +00:00
Gedare Bloom
8e6ded473c rtems: update licenses to 2BSD
This is an update of many lingering embedded brains GmbH licenses from
the RTEMS License to the 2-BSD license where possible depending on the
joint copyrights.

Updates #3053.
2025-02-10 15:44:09 +00:00
Joel Sherrill
5a9484e6cb m68k/mvme147: Remove obsolete BSP family
Updates #5031
2025-02-10 08:49:24 -06:00
Gedare Bloom
0055b067d2 rtems: update IMD licenses to 2BSD
This is an update of IMD (precursor to embedded brains) licenses from
the RTEMS License to the 2-BSD license where possible depending on the
joint copyrights.

Updates #3053.
2025-02-08 03:46:59 +00:00
Sebastian Huber
2b035f7b90 bsp/qoriq: Ignore spurious interrupts
For example, with edge triggered external interrupts we may see spurious
interrupts.   Ignore them instead of issuing a fatal error.

Use eieio to synchronize access to the IACK and EOI registers.

Use a loop to immediately services the next pending interrupt without
having to go through the exception epiloge and prologue.

Close #5172.
2025-02-07 16:16:26 -07:00
Kinsey Moore
f4c179c610 bsps/shared/dev/spi: Fix undefined function warning
This adds the appropriate header to resolve a warning about a missing
declaration for the fls() function.
2025-02-07 17:58:16 +00:00
Gedare Bloom
efa431e9ce powerpc: replace OARcorp URL with rtems.org URL 2025-02-07 15:11:11 +00:00