Commit Graph

35839 Commits

Author SHA1 Message Date
Sebastian Huber
c821b925f7 validation: Test the global construction
Update #3716.
2023-05-19 07:47:37 +02:00
Sebastian Huber
94df7a0125 basedefs.h: Improve formatting 2023-05-19 07:47:37 +02:00
Sebastian Huber
69635b3b1c basedefs.h: Add proper brief description 2023-05-19 07:47:37 +02:00
Sebastian Huber
35106bd8e0 rtems: Conditionally include MPCI header 2023-05-19 07:47:37 +02:00
Aaron Nyholm
c2913ec414 libmisc/shell: Fix file pointer leak and improved input data sanitation.
Coverity #1530126
Coverity #1530125
2023-05-17 13:41:44 -05:00
Tian Ye
e06152b82d bsps/aarch64: Fix 128bit q register print bug 2023-05-16 08:41:29 -05:00
Joel Sherrill
3f4454b686 _TOD_Adjust method is unused. Remove it.
Use of this method was likely eliminated during the rework to use
FreeBSD bintime/sbintime.

Close #4905.
2023-05-16 08:40:51 -05:00
Aaron Nyholm
94a7d17b09 aarch64/versal: Fix uart interrupt issues 2023-05-16 12:48:53 +10:00
Aaron Nyholm
8e3ab34051 testsuites/libtests: Add test for flashdev 2023-05-16 12:48:23 +10:00
Aaron Nyholm
984693a4b3 libmisc/shell: Add flashdev command 2023-05-16 12:48:18 +10:00
Aaron Nyholm
15d4428e96 cpukit/flash: Add API for Flash devices 2023-05-16 12:48:13 +10:00
Sebastian Huber
1f00afcb5a zlib: Update from 1.2.5 to 1.2.13
The updated files were extracted from:

https://www.zlib.net/zlib-1.2.13.tar.xz

The archive had an SHA-256 hash value of:

d14c38e313afc35a9a8760dadf26042f51ea0f5d154b0630a31da0540107fb98

Close #4902.
2023-05-09 15:07:09 +02:00
Karel Gardas
bf53ff2de2 bsps/amd64: add a new EFI-based variant of AMD64 BSP
The new amd64efi BSP supports:
- multiboot2 boot format. Runs well with GRUB.
- console based on either EFI simple text output or GOP-based framebuffer
- clock based on EFI event/timer API
- early console using either hard-wired PC-AT serial or just memory buffer
- with EFI support disabled the BSP is more or less equivalent to amd64 BSP
  with multiboot2 support
2023-04-29 20:41:23 +02:00
Karel Gardas
1590df5f9a bsps/amd64: increase CPU alignment to 16
AMD64 requires SSE support which operates on 128bit data values.
2023-04-29 20:41:23 +02:00
Karel Gardas
8804422a48 bsps/shared: import FreeBSD libefi library
The library is imported in minimalist version just to support future
amd64efi BSP.

The FreeBSD tree commit id with imported libefi version is:
ce7b20e5129cf0f269951b313d336a9c7d54d790
2023-04-29 20:41:23 +02:00
Sebastian Huber
020163e5b7 build: Remove superfluous attribute 2023-04-26 11:40:09 +02:00
Sebastian Huber
6979b03b0c score: Simplify _Objects_Is_api_valid()
Close #4863.
2023-04-26 10:39:34 +02:00
Sebastian Huber
863b26ee3a score: Avoid cyclic header file dependencies
There was a cyclic dependency: For RTEMS_STATIC_ANALYSIS we needed
basedefs.h in assert.h. For RTEMS_UNREACHABLE() we needed _Assert() from
assert.h in basedefs.h.

Fix this by introducing _Debug_Unreachable() in basedefs.h.

Add RTEMS_FUNCTION_NAME to basedefs.h and use it in basedefs.h and
assert.h.

Close #4900.
2023-04-25 08:25:33 +02:00
Chris Johns
3e4fa73935 bsps/powerpc: Fix warnings with PPC_SPECIAL_PURPOSE_REGISTER 2023-04-24 09:13:45 +10:00
Maldonado, Sergio E. (GSFC-580.0)
fe6a5d0f7a bsps/microblaze: Fix UART transmit interrupt 2023-04-19 09:55:43 -05:00
Maldonado, Sergio E. (GSFC-580.0)
c627a13239 bsps/microblaze: Add support for multiple UARTs 2023-04-19 09:55:43 -05:00
Maldonado, Sergio E. (GSFC-580.0)
1fbfc4eeac bsps/microblaze: Allow copying FDT from U-Boot 2023-04-19 09:55:43 -05:00
Kinsey Moore
7e119562ae bsps/aarch64: Enable MMU during remaps
The MMU must be enabled during mapping changes and TLB invalidations.
When this is not the case, TLB updates do not occur correctly in all
cases. This is especially apparent when changing a block entry to a
table entry when remapping small memory ranges in an otherwise
contiguous block.
2023-04-18 08:28:35 -05:00
Kinsey Moore
078bbbc9c8 spec: Silence benign warnings in 3rd party code
Do not warn about excessive shifts in imported Xilinx driver code when
building with the ILP32 ABI. The two instances of this warning produce
the desired effect of setting the upper address bits to 0.
2023-04-17 17:16:38 -05:00
Kinsey Moore
5a37722b06 spec/pkgconfig: Allow builds to override headers
This allows any builds targeting an installed RTEMS BSP to override
headers in the installed BSP reliably, including headers previously
installed by that or other builds. This includes applications, network
stacks, libraries, and any other builds.

Closes #4896
2023-04-14 08:36:52 +10:00
Chris Johns
407c87cd88 bsps/powerpc: Fix warnings with PPC_SPECIAL_PURPOSE_REGISTER 2023-04-11 14:55:02 +10:00
Chris Johns
25e1a11402 bsps/motorola_powerpc: Change defines from BSP names to avoid clash
- Change mvme2100 to mot_pcc_mvme2100 to avoid clashing with the
  RTEMS_BSP value for the BSP. You cannot have a define that is the
  BSP name.
2023-04-11 14:54:54 +10:00
Chris Johns
2715d0953d bsps/motorola_powerpc: Add spec support for BSP defines
- These are need by the net legacy stack
2023-04-06 14:05:42 +10:00
Chris Johns
2138ce43c5 bsps/mvme2700: Add MVME2700 BSP 2023-04-06 08:41:16 +10:00
Kinsey Moore
05dd54d11c cpukit/libdl: Resolve size mismatch warnings
Resolve warnings about mismatched pointer and integer sizes in AArch64
libdl when building with the ILP32 ABI.
2023-04-05 08:19:09 -05:00
Sebastian Huber
675a741023 bsp/qoriq: Build VME Tundra Tsi148 driver 2023-04-05 14:24:39 +02:00
Sebastian Huber
e9127eeef4 bsps/vme: Remove quirk
printk() supports long long integers.
2023-04-05 14:21:49 +02:00
Sebastian Huber
64fe53cb51 bsps/vme: Include missing header file 2023-04-05 14:19:07 +02:00
Sebastian Huber
32fe5724a8 bsps: Mark argument as unused
Update #4862.
2023-04-05 14:18:12 +02:00
Alan Cudmore
4021b87e00 spec: add riscv kendrytek210 variant build options
This patch includes the spec/build options for the riscv kendrytek210
BSP variant. It includes options to allow the frdme310arty console
UART to be used on multiple BSPS, device tree options, memory
options, and other required options for the variant.

Updates #4876
2023-03-28 14:04:04 -05:00
Alan Cudmore
26853a0624 bsps/riscv: add riscv/kendrytek210 BSP variant source changes
This patch adds support for the Kendryte K210 RISC-V BSP variant.
The SoC uses the existing Interrupt Controller, Timer, and console UART.
It only needs SoC specific initialization and an embedded device tree binary
similar to the polarfire SoC BSP.

Updates #4876
2023-03-28 14:04:04 -05:00
Alan Cudmore
ca1c4e70f5 bsps/riscv: add device tree source and device tree blob header for k210 bsp variant
This patch adds the k210 device tree source and the corresponding
device tree blob encoded in the header which is used for the
embedded device tree blob for the Kendryte K210 BSP variant.

Updates #4876
2023-03-28 14:04:04 -05:00
Kinsey Moore
acf4eb271c cpukit/jffs2: Avoid possible null deref
This was added with the writebuffer work and should have been protected
by the error check.
2023-03-23 10:33:52 -05:00
Kinsey Moore
7163014e3f bsps/xqspipsu: Add support for reading ECC
This adds a helper function to read the ECC status for an ECC unit in
SPI-attached NOR memory.
2023-03-22 13:30:08 -05:00
Kinsey Moore
ddafdfe9ba bsps/zynqmp: Use correct include path
The existing include path only works from inside the RTEMS build. This
fixes the include path to work both in the RTEMS build and with builds
of external apps since this file gets installed with the BSP.
2023-03-22 13:30:07 -05:00
Sebastian Huber
74a6b33f3b validation: Replace enum Event with defines
There is a Doxygen limitation that all compound names (enum, struct,
class, union, group) within a project must be unique.

Update #3716.
2023-03-17 15:55:39 +01:00
Sebastian Huber
3353d3f3ad doxygen: Add group for FreeBSD kernel header files 2023-03-17 08:47:28 +01:00
Sebastian Huber
45234f58e5 doxygen: Add test files to groups 2023-03-17 08:47:28 +01:00
Sebastian Huber
de6568ed99 validation: Fix test case group identifiers
Update #3716.
2023-03-17 08:47:28 +01:00
Sebastian Huber
eaecc4971a doxygen: Add files to groups and fix group scopes 2023-03-17 08:47:28 +01:00
Sebastian Huber
3264c8152b doxygen: Fix group identifiers 2023-03-17 08:47:28 +01:00
Sebastian Huber
a60b816fa7 bsps/arm: Fix wording 2023-03-17 07:25:34 +01:00
Sebastian Huber
11cc51ef27 bsps/riscv: Use per-CPU mtimecmp in clock driver
Use the mtimecmp from the PLIC/CLINT initialization in the clock driver.  This
register is defined by the device tree and does not assume a fixed mapping.
2023-03-17 07:25:34 +01:00
Sebastian Huber
cbddf5decd bsps/riscv: Fix riscv_get_hart_index_by_phandle()
Take a non-zero RISCV_BOOT_HARTID into account.
2023-03-17 07:25:34 +01:00
Sebastian Huber
e5233057be bsps/riscv: Make SMP start more robust
In SMP configurations, check that we run on a configured processor.  If not,
then there is not much that can be done since we do not have a stack available
for this processor.  Just loop forever in this case.  Do this in assemlby to
ensure that no stack memory is used.
2023-03-17 07:25:23 +01:00