Commit Graph

36907 Commits

Author SHA1 Message Date
Sebastian Huber
5ed0bf3457 spfatal34/spfatal36: Avoid RTEMS_UNREACHABLE()
The RTEMS_UNREACHABLE() is a hint to the compiler that this code
location is unreachable.  The compiler may use this information to
optimize the code.  If a test case fails and we reach this code
location, then unpredictable things may happen making the test case
debugging more difficult than necessary.
2024-11-13 23:05:25 +00:00
Sebastian Huber
85facac39f spfatal26: Fix recursive test end 2024-11-13 23:05:25 +00:00
Sebastian Huber
f57652dcda powerpc/qoriq: Enable RTEMS_SMP for BSP family 2024-11-13 02:03:13 +01:00
Sebastian Huber
30fc123f8d record: Use only related uptime low/high events
In case of overflows, we may have an RTEMS_RECORD_UPTIME_HIGH event as
the first event.  This uptime high event has no associated
RTEMS_RECORD_UPTIME_LOW event.
2024-11-12 22:43:35 +00:00
Sebastian Huber
464a37ac07 record: Add uptime event to fatal dump 2024-11-12 22:43:35 +00:00
Sebastian Huber
0f2721c832 record: Dump only once in fatal handling 2024-11-12 22:43:35 +00:00
Sebastian Huber
e72ee949a0 record: Avoid non-monotonic event times
The uptime and CPU counter reads must be as close as possible.  Fix
rounding.
2024-11-12 22:43:35 +00:00
Sebastian Huber
d4762dbad1 record: Improve uptime association 2024-11-12 22:43:35 +00:00
Sebastian Huber
4655a7df00 record: Reorganize system event numbers
This allows a fast check if a system event may not have a time stamp.
2024-11-12 22:43:35 +00:00
Sebastian Huber
920f8d8897 record: Rework client
The ring buffer overflow handling is already performed by
rtems_record_fetch().
2024-11-12 22:43:35 +00:00
Sebastian Huber
be764f7dec record: Remove rtems_record_drain()
The rtems_record_drain() function is unreliable.  Replace it with
rtems_record_fetch().
2024-11-12 22:43:35 +00:00
Sebastian Huber
049b9b5c82 record: Add rtems_record_fetch()
This function will replace rtems_record_drain() which turned out to be
unreliable in SMP configurations.
2024-11-12 22:43:35 +00:00
Sebastian Huber
31ac9cd554 record: Remove drain header from record control 2024-11-12 22:43:35 +00:00
Sebastian Huber
3721dea3d0 record02: Fix test end
Include _Record_Fatal_dump_base64_zlib() in the test scope.
2024-11-12 22:43:35 +00:00
Sebastian Huber
3f7fdcc711 shell01: Fix test failure
Test failure was introduced by commit:

commit c4f9759068
Author: shuhua hua <huangshuhua@kylinos.cn>
Date:   Thu Sep 12 02:36:13 2024 +0000

    libtests/shell01:add test empty and NULL usernames check
2024-11-12 16:25:05 +00:00
Sebastian Huber
9fabe95dc6 fstests: Fix name of JFFS2 NAND tests 2024-11-12 16:23:03 +00:00
Sebastian Huber
2c64cf1bd8 dev/serial/sc16is752-spi: Fix warnings
Fix several may be used uninitialized warnings.
2024-11-12 16:21:20 +00:00
Sebastian Huber
f208860981 dev/slcr: Fix warning 2024-11-12 16:18:20 +00:00
Chris Johns
32b46899a3 spec/bsps/xilinx-microzed: Fix the default setting for the Avnet Microzed PCLK
Closes #5149
2024-11-12 16:16:19 +11:00
Aaron Nyholm
177a8c57ea bsps/xilinx-zynq: Add QSPI flash driver 2024-11-08 03:34:48 +00:00
Chris Johns
d6f3cd72ee libmisc/rtems-fdt: Path find need a sorted index table
Sort the index table so the bubble search works.
2024-11-08 03:28:23 +00:00
Joel Sherrill
dc7adff723 timespec.h, etc.: Eliminate use of 32-bit for time_t
This code had a uint32_t local variable for seconds from a timespec.
This was assigning a time_t to a uint32_t and ultimately returning it.
This propgated to rtems_timespec_add_to().

Coverity CID 1512527

Closes #5107.
2024-11-08 00:38:23 +00:00
Sebastian Huber
f4875c8f4d build: Fix spec cache
The updated waf version deletes the waf cache directory in the build
tree.  This removes also the build specification item cache.  Move the
cache directory so that it works across configure commands.
2024-11-08 00:24:21 +00:00
Kinsey Moore
84fe3d830c spec: Update smallmem test list 2024-11-08 00:13:46 +00:00
Kinsey Moore
c59b6c3825 spec: Update no-rfs test list 2024-11-08 00:09:10 +00:00
Sebastian Huber
e87f5ebe37 score: Use normal integers for C++ atomic objects
Since C++20 there is no longer a trivial default constructor available
for atomic objects.  See:

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0883r2.pdf

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117475

We already assume that an atomic integer can be stored in a normal
integer and has the same representation in C and C++.

Update #5145.
2024-11-07 03:24:09 +01:00
Aaron Nyholm
87c725b6ed flashdev: Add sector IOCTLs
Added new IOCTLs to flashdev to get sector info.
Updated flashdev shell command and flashdev test with new IOCTLs.
2024-11-06 22:35:20 +00:00
Kinsey Moore
c4625d8d86 cpukit/arm/pmsa: Add ability to find empty MPU regions 2024-11-04 17:17:10 -06:00
Kinsey Moore
a506c7f713 cpukit/arm/pmsa: Correctly determine the total number of MPU regions 2024-11-01 16:55:47 -05:00
Gedare Bloom
c6ad57b102 riscv: fix FDT loads during work area init
Fixes #5139
2024-10-31 23:14:09 +00:00
Gedare Bloom
a1eb04be66 riscv/beaglevfire: disable BSP_START_COPY_FDT_FROM_U_BOOT by default 2024-10-31 22:59:15 +00:00
Sam Price
90c4d36cb3 microblaze: fix warnings about clock.
Closes #5141
2024-10-31 22:53:37 +00:00
Chris Johns
45308bcc32 bsp/xilinx-zynq: Change devcfg prints to printk
Updates #5142
2024-10-31 14:05:12 +11:00
Chris Johns
fbbbe04cf5 bsp/xilinx-zynq: Change devcfg locks to self-contained mutexes
Updates #5142
2024-10-31 13:56:41 +11:00
Chris Johns
558e0b3b89 bsp/xilinx-zynq: Move devcfg DMA alignment size to the install header
Fix the dev path spelling mistake.

Updates #5142
2024-10-31 13:28:37 +11:00
Chris Johns
d1e507e010 bsp/xilinx-zynq: Add SPDX to devcfg and slcr files
Updates #5142
2024-10-31 13:27:08 +11:00
Chris Johns
bc8ffae115 bsp/xilinx-zynq: Add devcfg and slcr drivers
The devfg driver loads the PL with a bitfile image. The driver can also
support scrubbing.

These drivers are from Patrick Gauvin <pggauvin at gmail.com> and a thread
on the devel list: https://lists.rtems.org/pipermail/devel/2017-May/017705.html
2024-10-30 23:04:42 +00:00
Chris Johns
a1c3d4ba8e version: Add the release label interfaces
- Mark the VC key interfaces as deprecated in doxygen

Updates #5037
2024-10-30 22:40:15 +00:00
Chris Johns
3d782180ea waf: Fix handling of the VERSION file in a release
Fixes #5037
2024-10-30 22:40:15 +00:00
Chris Johns
2c4c73fd40 waf: Reformat using yapf 2024-10-30 22:40:15 +00:00
yang.zhang
64fe53a855 libfs/pipe: Fix panic caused by incomplete pipe dup
When dup fd, should also clone fctnl flags.
Also should check NULL param in pipe_* funcs.

Signed-off-by: yang.zhang <zhangyang01@kylinos.cn>
2024-10-30 20:03:58 +00:00
Kinsey Moore
1b5549ae69 bsps/arm/zynq: Make secondary core wait on QEMU
When using QEMU configurations that support SMP for Zynq7000 systems,
the second core is started at the same time as the first core instead of
waiting for an event to trigger a check for the value at 0xfffffff0
before jumping into RTEMS code. This makes the erroneously started core
wait as expected and prevents prefetch and data aborts from occurring
before the MMU has been properly configured. This was recently exposed
by cleanup done to the ARM GICv2 driver that removed some delays which
were allowing this to operate normally.
2024-10-30 18:56:36 +00:00
Kinsey Moore
95d904b036 spec: Apply CLOCK_DRIVER_USE_ONLY_BOOT_PROCESSOR where expected
The general optclkbootcpu option is targeted at all ARM QEMU BSPs, but
is not actually linked in to the build tree. This links it in as
expected and removes a redundant and stale copy in the realview PBX BSP.
2024-10-30 18:56:36 +00:00
Matteo Concas
8820b8e63f grlib/b1553rt: Fix bit shift direction
The RT_TSW_OK field is set to 1 if there was no error. The Message Error
(ME) field indicates an error and must be set to 0 if there was no error
so the result of tsw&RT_TSW_OK must be negated. It is then left-shifted
to the Messsage Error (ME) bit field of the message information word.

Fix issue CID 1399772
2024-10-29 13:25:14 +00:00
Gedare Bloom
80ef0dee02 score: ignore -Wdanglingpointer= in _User_extensions_Iterate 2024-10-28 23:13:58 -06:00
Gedare Bloom
6ae5a04766 wscript: remove long_gcc for windows command line
waf now builds in support to detect the long command line problems
for windows.

Closes #5138.
2024-10-28 21:39:14 -06:00
Gedare Bloom
b9fa7a4082 gccdeps: import from waf-2.1.3 2024-10-28 21:39:14 -06:00
Gedare Bloom
5d074a263b waf: Update waf to version 2.1.3 2024-10-28 20:37:24 +00:00
Kinsey Moore
1bba349478 bsps: Remove imported Xilinx headers
This removes the headers imported from the embeddedsw repository in
favor of a much thinner shim. This also removes the complicated build
system configuration necessary to support use of these headers. The
primary reason for removal is that certain external Xilinx libraries
also require use of these headers and this causes version mismatches and
header conflicts that can be avoided.
2024-10-28 19:23:49 +00:00
Ning Yang
79bed0f191 aarch64/raspberrypi: optimize console return 2024-10-28 15:12:21 +00:00