Commit Graph

364 Commits

Author SHA1 Message Date
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
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
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
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
Jeremy Lorelli
9cfe726b0d bsps/beatnik: Use standard C99 designated initializers 2025-06-30 16:25:03 -05:00
Jeremy Lorelli
4b05acde6f bsps/mvme3100: Use standard C99 designated initializers 2025-06-30 16:25:03 -05:00
Joel Sherrill
fc0542fa7a bsps/powerpc/*/include/bsp.h: Remove stray semi-colon
The gen5200, gen83xx, and tqm8xx BSP families have multiple variants
which produced the same stray semi-colon warning from GCC 15 for
using LINKER_SYMBOLS() with a semi-colon at the end of the line.

Closes #5277.
2025-06-24 20:25:08 +00:00
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
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
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
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
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
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
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
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
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
Gedare Bloom
efa431e9ce powerpc: replace OARcorp URL with rtems.org URL 2025-02-07 15:11:11 +00:00
Gedare Bloom
c424ce25a7 i386/pc386: remove URLs from copyright blocks
Updates #4636.
2025-02-07 00:35:58 +00:00
Joel Sherrill
bffc250688 General: Update Eric Valette's email address
Changing Eric's email from valette@crf.canon.frto eric.valette@free.fr
2025-02-04 12:41:08 -06:00
Gedare Bloom
203b08fa23 powerpc: remove unused file debugmod.h 2025-02-03 17:18:35 -07:00
Sebastian Huber
f43042cd06 bsps: Move <bsp/linker-symbols.h> to shared
Move architecture-independent items to a shared <bsp/linker-symbols.h>.
Allow architectures to customize it through <bsp/linker-symbols-arch.h>.
2024-10-11 01:27:48 +02:00
Sebastian Huber
ca96857962 bsp/virtex5: Use default fatal extension
Update #5067.
2024-08-23 14:54:37 +00:00
Sebastian Huber
c88feda145 bsp/virtex4: Use default fatal extension
Update #5067.
2024-08-23 14:54:37 +00:00
Sebastian Huber
002c6067ba bsps: Add fatal source/code to bsp_reset()
Mark bsp_reset() as no-return.  Use default BSP fatal handler in lm32 and m68k
BSPs.  Remove empty bsp_reset() implementation.

Update #5067.
2024-08-23 14:54:37 +00:00
Sebastian Huber
aeae283541 bsp/mvme5500: Use default fatal extension
Update #5067.
2024-08-23 14:54:37 +00:00
Sebastian Huber
be9f339420 bsp/beatnik: Use default fatal extension
Update #5067.
2024-08-23 14:54:37 +00:00
Sebastian Huber
89002394dd bsp/gen5200: Add section for GDB pretty-printing 2024-08-08 05:37:16 +02:00
Amar Takhar
81e81d1650 Convert LICENSE to LICENSE.md
This also fixes one spelling mistake:

  jffs2/src/LICENCE -> jffs2/src/LICENSE.md
2024-08-05 21:43:36 +00:00
Amar Takhar
a5370d1870 bsps: Fold various files into README.md 2024-08-05 21:41:15 +00:00
Amar Takhar
28180a1fa9 bsps: Convert README to MarkDown 2024-08-05 21:37:42 +00:00
the-m3chanic
a9b39c800c powerpc: modified linkcmds.base to add new section for GDB pretty-printing 2024-08-05 21:29:58 +00:00
Amar Takhar
52a9fdec5c Convert various files to README.md MarkDown 2024-08-02 21:13:35 +00:00
Chris Johns
0bdeef72fe bsp/powerpc: Remove e500 machine state for asm functions
The e500 machine state was added when gcc 10 support appeared to deal with
the assembler's -many option being removed.

Close #5043
2024-06-18 04:27:46 +00:00
Sebastian Huber
ab8817ca03 rtems: Add get/set interrupt priorities
Add directives to get and set the priority of an interrupt vector.

Implement the directives for the following BSP families:

* arm/lpc24xx
* arm/lpc32xx
* powerpc/mpc55xxevb
* powerpc/qoriq

Implement the directives for the following interrupt controllers:

* GICv2 and GICv3 (arm and aarch64)
* NVIC (arm)
* PLIC (riscv)

Update #5002.
2024-05-10 13:26:22 +00:00
Vincenzo Calabretta
1f4e0c1036 bsps/powerpc: Introduction of interrupt locks
Interrupt locks are introduced in shared vme device drivers to enable
compilation in an SMP configuration of the qoriq BSP.
2024-05-07 18:26:28 +02:00
Vincenzo Calabretta
b191af1619 bsp/qoriq: Include missing processormaskimpl.h 2024-04-30 01:39:06 -04:00
Sebastian Huber
5b0e355ed7 bsps: Move declarations to <bsp/irq-generic.h>
Move declarations of bsp_interrupt_get_affinity() and
bsp_interrupt_set_affinity() to <bsp/irq-generic.h>.  Canonicalize the
<bsp/irq.h> includes.

Implement bsp_interrupt_get_affinity() and bsp_interrupt_set_affinity() only if
needed (usually RTEMS_SMP).

Provide stub implementations for i386 to fix build errors.
2024-03-27 20:20:38 +01:00
Sebastian Huber
1eed6f8bfc bsps: Avoid unused argument in clock interrupt
Pass the parameter of the clock interrupt handler to
Clock_driver_support_at_tick() and Clock_driver_timecounter_tick().  This makes
it possible to use the interrupt handler argument in clock drivers.

Use the interrupt handler provided by Clock_driver_support_install_isr() to
avoid local delarations of Clock_isr().

Update #4862.
2024-03-20 16:34:09 +01:00
Sebastian Huber
5cb666ba41 bsps/powerpc: Fix include order
The <rtems/irq.h> header file depends on the BSP-provided define
BSP_SHARED_HANDLER_SUPPORT.
2024-03-11 07:09:15 +01:00
Sebastian Huber
a779b17764 bsps/powerpc: Include missing <rtems/irq.h>
The <rtems/irq.h> defines a legacy API.
2024-02-27 14:54:32 +01:00
Sebastian Huber
d6242196b5 bsp/qoriq: Use more specific include 2024-02-27 14:13:14 +01:00
Sebastian Huber
b544d070cf bsp/qoriq: Remove superfluous include 2024-02-27 14:13:14 +01:00
Sebastian Huber
65bfcc3944 bsp/qoriq: Remove <rtems/irq.h> in <bsp/irq.h>
The <rtems/irq.h> defines a legacy API.
2024-02-27 14:13:14 +01:00
Sebastian Huber
4fd930b7f0 bsp/qoriq: Use bsp_fatal() 2024-02-27 14:13:13 +01:00
Sebastian Huber
7e990236a7 bsp/qoriq: Use interrupt entry
Avoid heap usage in the basic BSP.
2024-02-27 14:13:13 +01:00