Commit Graph

35735 Commits

Author SHA1 Message Date
Sebastian Huber
519e288a96 bsps/irq: Clarify interrupt vector operations
Clarify that the presence of error conditions is
implementation-defined.

Close #4843.
2023-02-10 16:14:11 +01:00
Sebastian Huber
22d845d5b7 score: Replace goto with a break
The goto label was directly after the loop, so we can replace the goto
with a break.

Close #4847.
2023-02-10 16:14:11 +01:00
Joel Sherrill
26e1610833 shell/main_pci.c: Address Dereference after null error check
Coverity CID 1399716

Closes #431.
2023-02-10 07:55:17 -06:00
Joel Sherrill
77e7bd97dc libmisc/serdbg: Remove obsolete serial debug
Closes #2828.
2023-02-09 09:05:58 -06:00
Kinsey Moore
c0fad60c59 bsps/xil: Import full xil_exception.h
This imports the full xil_exception.h instead of an empty stub. This is
required for some Xilinx drivers. The imported files adhere to the
current VERSION file.
2023-02-08 14:11:47 -06:00
Kinsey Moore
d9f3dcba10 bsps/xil: Make sleep.h a stub
This makes xil/sleep.h a stub to prevent multiple differing definitions
of sleep functions from toolchain and local headers. The non-standard
sleep definitions were not in use and can be added later if needed.
2023-02-08 14:11:47 -06:00
Zhongjie Zhu
ebb9e8c0a6 score: Fix maybe uninitialized warning
There are different cases for _ISR_lock_ISR_disable() and
_ISR_lock_ISR_enable() in the case RTEMS_SMP is defined or
RTEMS_PROFILING is defined, so remove the related code.

../../../cpukit/include/rtems/score/threaddispatch.h: In function '_Thread_Dispatch_disable':
../../../cpukit/include/rtems/score/threaddispatch.h:231:14: warning: 'lock_context' may be used uninitialized [-Wmaybe-uninitialized]
  231 |   cpu_self = _Thread_Dispatch_disable_critical( &lock_context );
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../cpukit/include/rtems/score/threaddispatch.h:210:32: note: by argument 1 of type 'const ISR_lock_Context *' to '_Thread_Dispatch_disable_critical' declared here
  210 | static inline Per_CPU_Control *_Thread_Dispatch_disable_critical(
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../cpukit/include/rtems/score/threaddispatch.h:225:21: note: 'lock_context' declared here
  225 |   ISR_lock_Context  lock_context;
      |                     ^~~~~~~~~~~~

Update #4662.
2023-02-07 17:45:24 +01:00
Kinsey Moore
a932d5d6e1 spec/bsps: Deduplicate objxilinxsupport
The objxilinxsupport build object was accidentally included twice in
some of the ZynqMP BSPs by two different drivers that required it. This
commit manually deduplicates the inclusions by moving that inclusion to
the BSP. Duplication of object inclusions is considered a bug and can
cause race conditions in the build system.
2023-02-06 17:33:13 -06:00
Ryan Long
9d5354e897 bsps/microblaze: Add device tree support to UART Lite 2023-02-06 14:29:24 -06:00
Ryan Long
3fd8cf2d37 bsps/microblaze: Add device tree support to JFFS2 QSPI 2023-02-06 14:29:24 -06:00
Ryan Long
cbac78afa9 bsps/microblaze: Add device tree support to AXI interrupt controller 2023-02-06 14:29:24 -06:00
Alex White
eb94aaff1d bsps/microblaze: Add device tree support to timer 2023-02-06 14:29:24 -06:00
Alex White
63b21ad5e0 bsps/microblaze: Add device tree getter
This allows drivers to read configuration data from the device tree if
the BSP is built with device tree support.
2023-02-06 14:29:24 -06:00
Sebastian Huber
a67b944329 sha512_224: Fix SHA512_224_Final() on little-endian machines.
PR:		266863
MFC after:	1 week
Reviewed by:	allanjude, cperciva, des
Differential Revision:	https://reviews.freebsd.org/D38372
2023-02-06 19:37:24 +01:00
Sebastian Huber
1d07dfad83 validation: Improve IRQ handler dispatch test
Clarify wording.  Use a function wrapper for the SMP spurious interrupt setup.

Update #3716.
2023-02-06 09:46:45 +01:00
Karel Gardas
f16b8fc32a bsps/stm32h7: allow config and usage of QSPI memory on stm32h757i-eval BSP
The QSPI memory is initialized and used only when the BSP configure file
sets QSPI memory size to non-zero value. Currently QSPI is run in memory
mapped mode which allows future RTEMS binary linkage and upload into QSPI
memory.

Sponsored-By:	Precidata
2023-02-05 20:42:24 +01:00
Karel Gardas
d068cdb384 bsps/stm32h7: import stm32h757i-eval QSPI memory high-level driver 2023-02-05 20:42:24 +01:00
Karel Gardas
f9169dca69 bsps/stm32h7: import MT25TL01G QSPI memory low-level driver 2023-02-05 20:42:24 +01:00
Chris Johns
edea93c40b libmisc/shell/edit: Return if no memory in move_gap
Closes #4835
2023-01-31 07:16:14 +11:00
Chris Johns
3ad2789fc6 libmisc/shell/edit: Fix closing the editor
Closes #4834
2023-01-31 07:16:14 +11:00
Kinsey Moore
ada805ea2e bsps/nand: Update Xilinx NAND driver
This resovles gcc warnings by updating to the latest Xilinx NAND
controller driver.
2023-01-30 10:44:24 -06:00
Kinsey Moore
4c0a2d47e1 cpukit/dev/can: Resolve warnings in 64bit builds
This resolves various gcc warnings in AArch64 LP64 builds of the CAN
framework.
2023-01-30 10:44:24 -06:00
Joel Sherrill
29a3ad1ba9 grlib: Fix snprintf() overflow warnings from gcc 12
Updates #4662.
2023-01-30 10:44:20 -06:00
Sebastian Huber
453939753b score: Help static analysis in thread init
Add an assert to _Thread_Initialize_scheduler_and_wait_nodes() which may
help a static analyzer.  Use a do/while loop since we have at least one
scheduler.

Update #4832.
2023-01-28 17:58:20 +01:00
Alex White
6fa3a3b32a spec: Fix XPS_SYS_CTRL_BASEADDR default value
The default value for XPS_SYS_CTRL_BASEADDR was given as an int rather
than an iterable.
2023-01-27 17:33:00 -06:00
Alex White
098ad421a1 bsps/xilinx-zynqmp: Add JFFS2 GQSPI NOR driver 2023-01-27 14:49:28 -06:00
Alex White
d55c131965 bsps: Add Xilinx GQSPI flash helper
This adds helper functions for working with NOR flash connected to the
Xilinx GQSPI controller. The helper functions are based on Xilinx's
QSPIPSU flash interrupt example.
2023-01-27 14:49:28 -06:00
Alex White
fd2f9d40b5 bsps: Import Xilinx GQSPI driver
This adds Xilinx's driver for the Xilinx GQSPI controller embedded in
the ZynqMP SoC. Within that device alone, it is possible to access this
peripheral from MicroBlaze, ARMv7, and ARMv8 cores. The imported files
are and should be able to remain unmodified. Import information is kept
in bsps/shared/dev/spi/VERSION.
2023-01-27 14:49:27 -06:00
Kinsey Moore
1da87d6293 spec: Install NandPsu headers correctly
These headers were mistakenly placed in the root of the installed BSP
include directory. They should be in dev/nand.
2023-01-26 13:23:44 -06:00
Joel Sherrill
a2360c4f03 cpukit/rtems/src/partcreate.c: Correct style by adding braces 2023-01-26 13:23:25 -06:00
Sebastian Huber
48f693a97e score: Remove unused return value
Several SMP message processing functions returned a value.  This value
was always unused.

Close #4822.
2023-01-24 16:53:03 +01:00
Sebastian Huber
5156cd6997 build: Add dl11 to libdl test exclude list 2023-01-24 11:40:59 +01:00
Sebastian Huber
d36070fec8 intr: Add Interrupt Manager implementation group
The shared BSP interrupt controller support code actually implements
parts of the Interrupt Manager.

Update #3706.
2023-01-24 09:56:53 +01:00
Sebastian Huber
0340fd9a98 cpuuse: Use standard wording and group name
Use standard wording in CPU usage reporting files.
2023-01-24 09:56:53 +01:00
Sebastian Huber
6136e28bf9 clockdrv: Add clock driver implementation group
Use standard wording in Clock Driver related files.

Update #3706.
2023-01-24 09:56:53 +01:00
Sebastian Huber
10ee41a8a3 tm27: Avoid function pointer casts
Add TM27_USE_VECTOR_HANDLER to select the interrupt handler type used by
the <tm27.h> implementation.

Close #4820.
2023-01-24 09:56:53 +01:00
Sebastian Huber
9ecb73f368 score: Clarify code block
Do not use a chained assignment for code clarity.

Close #4818.
2023-01-24 08:23:44 +01:00
Sebastian Huber
4f274b6925 powerpc: Increase MAS0 ESEL width
For example, the QorIQ T4240 has more than 16 TLB1 entries.
2023-01-23 09:56:52 +01:00
Sebastian Huber
004563465b build: Update PyYAML to 5.4.1 2023-01-23 09:56:52 +01:00
Martin Erik Werner
434d11b446 rtems: Fix typo 2023-01-23 08:57:07 +01:00
Martin Erik Werner
ff3a87c16e score: Fix minor Rhe->The typo in doxygen 2023-01-23 08:57:07 +01:00
Kinsey Moore
81085ca9f4 testsuites/libtest/dl11: Add DL test for TLS
This adds a test verifying basic TLS functionality in loadable modules
now that at least one architecture supports it.
2023-01-20 08:26:35 -06:00
Kinsey Moore
d3662980d0 cpukit/libdl: Add AArch64 TLS reloc support
This adds basic TLS relocation support for AArch64 to libdl. This lets
loadable modules use TLS symbols hosted in the main binary. This does
not allow loadable modules to host their own TLS symbols.
2023-01-20 08:26:35 -06:00
Kinsey Moore
189539f70d cpukit/libdl: Print the missing AArch64 reloc type
This prints the relocation type that was found to be missing in addition
to its address to aid in bug reports.
2023-01-20 08:26:35 -06:00
Kinsey Moore
df0de7810f cpukit/libdl: Use correct mask for reloc type
The mask 0xff is used by ELF32 while ELF64 uses 0xffffffff. These are
automatically selected based on the build type when using ELF_R_TYPE().
2023-01-20 08:26:35 -06:00
Kinsey Moore
f36d8b14e0 spec: Fix Xilinx support YAML licenses
This should use the CC 4.0 license to match the rest of the tree.
2023-01-19 15:38:31 -06:00
Sebastian Huber
5b124432e2 build: Fix copyright statement format 2023-01-17 10:11:00 +01:00
Sebastian Huber
70e2990c77 build: Remove bogus attribute 2023-01-17 09:46:26 +01:00
Sebastian Huber
45ef2dd3fe bsp/tms570: Fix define redefinition error 2023-01-17 08:31:48 +01:00
Sebastian Huber
f20078acea build: Use enabled by for defaults
Merge the "default" and "default-by-variant" attributes.  Use an
"enabled-by" expression to select the default value based on the enabled
set.  This makes it possible to select default values depending on other
options.  For example you could choose memory settings based on whether
RTEMS_SMP is enabled or disabled.

The change was tested by comparing the output of

  ./waf bspdefaults

before and after the change.
2023-01-17 08:31:48 +01:00