Commit Graph

2024 Commits

Author SHA1 Message Date
Joel Sherrill
a350345e29 arm/.../stm32h757i-eval/system_stm32h7xx.c: Fix misleading indentation
GCC warned that the incorrectly indented line could be misinterpreted
as needing to belong to the previous for loop which does not have
braces.
2025-07-24 21:20:17 -05:00
Joel Sherrill
86253b9e05 bsps/powerpc/gen5200/mscan/mscan.c: Fix format specifier warning
Calling rtems_panic() and should have used %ul.
2025-07-24 22:01:38 -04:00
Joel Sherrill
54f8249915 bsps/mvme5500: Remove the BSP
MVME5500 was deprecated in 6 and will not be present in 7.
The Beatnik is recommended.

Updates rtems/rtos/rtems#4160
2025-07-24 22:00:04 -04:00
Joel Sherrill
41f6f28c6d bsps/powerpc/ss555/start/bspstart.c: Fix array bounds warning
GCC warned that the pointer magic was resulting in an array bounds
violation. The solution is to use uintptr_t when doing abusive
pointer math.
2025-07-24 21:59:20 -04:00
Joel Sherrill
4773863245 bsps/x86_64/amd64/clock/clock.c: Correct printf() format specifiers
The DBG_PRINTF() is disabled by default which meant the warning
was normally hidden.
2025-07-24 20:37:11 -05:00
Joel Sherrill
ccc5651c99 altera-cyclone-v/contrib/.../hwmgr/*.c: Fix warnings
Some of these were missing prototypes. Usually this could be addressed
by adding static or conditionally compiling unused functions out.
2025-07-24 20:36:11 -05:00
Joel Sherrill
2f04281682 bsps/mips/malta/pci/pci.c: Correct printf() format specifiers
Switched to PRIu32.
2025-07-24 20:26:15 -05:00
Joel Sherrill
b934583853 bsps/mips/include/libcpu/au1x00.h: Correct au_sync() prototype
GCC warns that ‘static’ is not at beginning of the function
declaration.
2025-07-24 19:48:22 -05:00
Joel Sherrill
95a90047df bsps/arm/lpc176x/include/bsp/lpc176x.h: Correct ADC_DR_VALUE() macro
ADC_DR_VALUE() should used starting bit 4 not 6. See the issue
for a link to the LPC17xx manual for reference.

Closes #5293.
2025-07-24 19:29:11 -05:00
Christian Mauderer
c16bb34650 bsps/imxrt: Fix warning
The implementation of the BUILD_ASSURE in mcux-sdk causes a warning. Use
a C11 _Static_assert instead.

Updates #5300
2025-07-24 19:26:24 -05:00
Joel Sherrill
58795be2cb bsps/m68k/genmcf548x/console/console.c: Fix misleading indentation
Added braces and corrected indentation to reflect intent.
2025-07-24 18:36:27 -05:00
Joel Sherrill
e856c4b985 bsps/m68k/genmcf548x/start/bspstart.c: Fix negative array subsscript
GCC warned that the pointer magic was resulting in an array bounds
violation. The solution is to use uintptr_t when doing abusive
pointer math.
2025-07-24 18:31:11 -05:00
Joel Sherrill
f95385da23 m68k/genmcf548x/start/init548x.c: Fix warning for comparing two arrays
GCC warnings when comparing the starting addresses of two arrays when
using just the name of the array. Changes to use the address of
element 0 which resolved the warning.
2025-07-24 18:29:51 -05:00
Joel Sherrill
262cbd69f3 bsps/m68k/mcf5329/start/init5329.c: Address comparison of arrays
GCC warned about comparing arrays by name. Changed to casting all
array names to (uintptr_t).
2025-07-24 18:28:56 -05:00
Joel Sherrill
1a394709eb bsps/or1k/generic_or1k/btimer/btimer.c: Address misleading indentation
GCC warned that the indentation was misleading.
2025-07-24 18:28:16 -05:00
Joel Sherrill
0a5890c623 bsps/riscv/niosv/flash/altera_epcq_driver.c: Variable unused after read
The driver was reading from memory and GCC warning that the value
read was ignored. Added annotation to indicate this was intentional.
2025-07-24 18:23:01 -05:00
Kinsey Moore
e36bbd8e25 bsps/dev/spi/xqspipsu-flash-helper: Explain source
This adds a missing header block and better explains the provenance of
the xqspipsu-flash-helper files and their copyright status.
2025-07-24 17:31:48 -05:00
Kinsey Moore
fc9093723b bsps/include/dev/spi: Add missing extern and guard
This adds missing extern "C" declarations and a missing header guard.
2025-07-24 17:31:48 -05:00
Sunil-Hegde
ecab84ce29 bsps/m68k: removed set_vector() prototypes
removed all set_vector() function prototypes from
all the respective bsp.h header files and removed
bsps/shared/start/setvec.c from respective .yml files.
2025-07-24 17:29:55 -05:00
Sunil Hegde
e9cb088995 bsps/m68k: removed uses of set_vector()
removed uses of set_vector() accross all the files.
Changes were introduced in all tm27.h and clock.c
files.
2025-07-24 17:29:55 -05:00
Jacob Killelea
47802e7eb3 arm/raspberrypi: Specify an initial baud rate during startup
* Fixes #5256.

* Specify an initial baud rate to use during startup.
  After the PL011 code refactor in
  0f42153959, an initial baud rate
  is required. arm_pl011_first_open is called from boot_card and
  will fail without a baud rate specified. This can cause certain
  future uses of /dev/console, such as opening a shell, to fail.
2025-07-22 18:06:44 -07:00
Joel Sherrill
dd6e67b20c arm/xilinx-zynqmp/start/bspreset.c: Add include <bsp/bootcard.h>
Needed the include to have prototype of bsp_reset().
2025-07-17 17:13:36 -04:00
Joel Sherrill
66179533bf bsps/arm/atsam/spi/atsam_spi_bus.c: Add parentheses
Addressed GCC warning about the lack of parentheses.
2025-07-17 15:08:53 -05:00
Jeremy Lorelli
2ec78303eb uC5282/console/console.c: Fix misleading indentation warning
The rtems_interrupt_disable macros expand to some code that
is indented. GCC sees this as misleading indentation next
to the while loop without braces.
2025-07-16 12:15:47 -07:00
Joel Sherrill
a8d0d9dc53 bsps/powerpc/ss555/include/tm27.h: Fix nested declaration warning
The macro Install_tm27_vector() included an extern for tm27IrqData
inside the scope of the macro. This generated a "nested extern
declaration warning. Moved the extern outside the scope.
2025-07-15 22:58:44 +00:00
Joel Sherrill
db19f09a21 bsps/powerpc/shared: Fix 32/64 and printf format specifier warnings
The PowerPC has both 32 and 64 bit CPUs within a single architecture
and collection of BSPs. This change set addresses cases where the
format specifier, type, or cast was not correct or portable across
32 and 64 bit environments.
2025-07-15 22:57:46 +00:00
Joel Sherrill
f12e733097 powerpc/beatnik/start/bspstart.c: Correct printf() format specifier
Use correct specifier for uintptr_t.
2025-07-15 22:53:30 +00:00
Joel Sherrill
ae0ef784a4 pc386/clock/ckinit.c: Fix warning in SMP build
Add cast on SMP_Action_handler registration to eliminate warning.
2025-07-15 22:45:22 +00:00
Joel Sherrill
ef1edd5bea microblaze_fpga/include/tm27.h: Fix unused variable warning
This implementation of the tm27 helpers is non-functional. It
needed to at least indicate that it was not using a parameter.
2025-07-15 22:35:48 +00:00
Sunil-Hegde
a8869154b4 bsps/nios2/nios2_iss: removed implementation of set_vector()
Deleted start/setvec.c and updated .yml file accordingly.
2025-07-14 17:15:36 -05:00
Sunil-Hegde
005d8fee6f bsps/nios2/nios2_iss: removed uses of set_vector()
removed uses of set_vector from clock.c and btimer.c
used rtems_interrupt_entry_install() and
rtems_interrupt_handler_install().
2025-07-14 17:15:36 -05:00
Christian Mauderer
317cfa50d0 bsps/stm32u5: Fix warnings in HAL
The HAL has a few comparisons of a pointer with 0U instead of NULL. This
patch fixes that.

Fixes #5289
2025-07-12 15:44:41 -04:00
Christian Mauderer
3ac0e3c77e bsps/stm32u5: Fix warning in RTC
The function stm32u5_rtc_get_time is only used locally and therefore
should be static.

Update #5289
2025-07-12 15:44:41 -04:00
Christian Mauderer
1134358f49 bsps/stm32u5: Fix warning in bspstarthooks.c
This fixes a warning about comparing different pointer types.

Updates #5289
2025-07-12 15:44:41 -04:00
Christian Mauderer
689e1c6de9 bsps/stm32u5: Fix build error
The cortex_m33.h should not be included directly. It is already included
in the stm32u5xx.h and that file sets all necessary defines.

Updates #5289
2025-07-12 15:44:41 -04:00
Kinsey Moore
97f1ae9017 bsps/aarch64/xen: Add SMP support 2025-07-11 11:36:51 -05:00
Kinsey Moore
ec6566dee9 bsps/aarch64: Add Xen BSP 2025-07-11 11:36:51 -05:00
Kinsey Moore
dc0d3149e5 cpukit/aarch64: Refactor exception handling
This refactors the AArch64 exception handling to remove the mutable code
sections that are generally flagged as a bad idea by code analysis
tools. This also removes any casting between data pointers and function
pointers to avoid the need to use pragmas to disable warnings about such
casting.
2025-07-11 11:36:51 -05:00
Kinsey Moore
ad5a2be4c1 bsps/aarch64/start: Add support for Image protocol
This adds support for a the Image header protocol similar to the zImage
protocol that Linux kernels use to describe their expectations of the
system configuration.
2025-07-11 11:36:51 -05:00
Kinsey Moore
90587938e4 bsps/aarch64/timer: Use correct definition
The AArch64-specific timer selection mechanism was using the wrong macro
for selecting the timer interrupt and would therefore partially ignore
configurations that selected the use of virtual timers. The virtual
timer will now be used correctly when selected.
2025-07-11 11:36:51 -05:00
Kinsey Moore
4f5723e125 bsps: Remove post-link config files
These files are not currently useful in the tree and will be replaced by
a different post-link tool.

Updates rtems/programs/gsoc#74
2025-07-09 21:05:37 -05:00
Joel Sherrill
0757c809b8 lpc24xx/console/console-config.c: Address unused functions
The functions lpc24xx_uart_set_register() and
lpc24xx_uart_set_register() were unused if all of the
feature macros LPC24XX_CONFIG_CONSOLE and LPC24XX_CONFIG_UART_[123]
were undefined.
2025-07-10 00:32:48 +00:00
Joel Sherrill
f6f3eafa3b powerpc/gen5200/.../bestcomm_cntrl.h: Fix type punning warnings
Three macros included a case of type punning in each. Addressed by
introducing a local pointer variable.
2025-07-10 00:28:44 +00:00
Joel Sherrill
6fbbee4427 arm/lpc32xx: Fix prototype mismatch and LPC32XX_SCRATCH_AREA_SIZE use
lpc32xx_mlc_write_blocks() had a different prototype in the header
from the implementation. Changed to match the prototype and Doxygen.

LPC32XX_SCRATCH_AREA_SIZE was tested with "ifdef" not "if" which
resulted in it being used as an array size when undefined or
set to 0.
2025-07-07 17:28:05 -05:00
Joel Sherrill
a30ecc39cd arm/lpc32xx/include/bsp/lpc32xx.h: Add unused element in structure
This header file defines multiple empty structures which are
reported as errors by the test spstdc17 using GCC 15.  Added an element
named "unused" to each structure. The macro LPC32XX_FILL() was
checked to ensure it handles the modified structure correctly.

Closes #5295.
2025-07-07 10:38:17 -05:00
Joel Sherrill
b65e36e2f4 generic_or1k/clock/clockdrv.c: Add cast on ISR installation
Add cast on clock ISR handler.
2025-07-04 13:17:34 -05:00
Sunil-Hegde
a899cdd57d bsps/sparc: Remove set_vector() usage and implementation
Removed all uses and implementations of set_vector() function across ERC32,
LEON2, and LEON3 BSPs. Replaced with rtems_interrupt_handler_install() and
rtems_interrupt_entry_install().

- Added ERC32_Clear_and_unmask_interrupt() and LEON_Clear_and_unmask_interrupt()
  for unmasking logic previously in set_vector().
- Deleted set_vector() definitions and implementations in each BSP.
- Updated related obj.yml files.
- Replaced set_vector() with rtems_interrupt_catch() in shared/gnatcommon.c.
2025-07-04 09:52:35 +05:30
Kinsey Moore
18982404db bsps: Remove stale test configurations
Files ending in .tcfg are old tester configurations that are no longer
relevant since this configuration has been migrated to spec/../tst*.yml.
2025-07-03 18:21:50 -04:00
Christian Mauderer
b629e6afbc bsps/stm32u5: Keep clock if running from OSPI
If the clock is changed during boot, the memory becomes inaccessible and
the system can't continue to run from OSPI.
2025-07-02 23:41:01 -04:00
Matt Joyce
d735d4459c bsps/stm32u5-grisp-nano: New BSP
This BSP supports a custom STM32U5 based board. It uses a similar
structure like the existing STM32H7 BSP and therefore should be well
adaptable to other boards.

Co-authored-by: Christian Mauderer <christian.mauderer@embedded-brains.de>
2025-07-02 23:41:01 -04:00