Commit Graph

35482 Commits

Author SHA1 Message Date
Sebastian Huber
dad6d32271 Fix pedanic warnings without a storage increase
Use RTEMS_ZERO_LENGTH_ARRAY for flexible array member.

Update #4662.
2022-08-31 13:21:02 +02:00
Sebastian Huber
1be6dc18d3 libtest: Fix warnings without a pragma
It seems that recent GCC versions expect that functions with a "const type *"
parameter will read from the referenced location.

Update #4662.
2022-08-31 13:20:49 +02:00
Sebastian Huber
b3d2e3fefe config: Include <rtems/posix/timer.h> on demand
Updates #4691.
2022-08-31 13:18:19 +02:00
Sebastian Huber
c4472cef3e validation: Move flush filter stop validation
This gets rid of a cyclic dependency in the specification graph.

Update #3716.
2022-08-31 11:29:56 +02:00
Sebastian Huber
1dca588f63 validation: Support a partial thread queue flush
Update #3716.
2022-08-31 11:29:37 +02:00
Sebastian Huber
44b3bc65af validation: Fix use of uninitialized variables
Update #4662.
2022-08-30 07:30:42 +02:00
Sebastian Huber
c226990836 score: Do not expose <limits.h> to <rtems.h>
The <rtems.h> header file should not unnecessarily include standard C
header files.  The <string.h> and <limits.h> header includes were
removed in 2017.

Update #4662.
2022-08-30 06:59:37 +02:00
Sebastian Huber
9b16f24d9c score: Fix format
Update #4706.
2022-08-29 09:19:26 +02:00
Sebastian Huber
23b42f79f9 score: Fix format
Update #4706.
2022-08-29 09:15:03 +02:00
Sebastian Huber
3d2fbaf4a3 Revert "linkersets.h: Fix gcc 12 warning"
This reverts commit f930206724.

The linker set begin must be a symbol and not a zero-initialized item.
2022-08-29 08:53:22 +02:00
Chris Johns
a932829b01 libdebugger/aarch64: Set .start section to RW
- Stops the server crashing when setting breakpoints in .start
2022-08-25 14:10:21 +10:00
Chris Johns
a3b0f7d5a8 bsps/xilinx/versal: Add Cadence I2C driver support 2022-08-25 09:25:03 +10:00
Stephen Clark
c738be92a0 bsps/amd64: remove -Werror from ABI flags
The ABI flags for the amd64 BSP contain the -Werror=return-type flag. There is no reason for this to be there so it has been removed. The same option has also been removed amd64.cfg file.
2022-08-23 11:37:21 -05:00
Chris Johns
dee5ea8147 bsps/xilinx/versal: Remove IPL32 BSPs, add aiedge and change defaults
- Versal has IO mapped to the upper 64bit address space and
  needs full 64bit addresses.

- Add xilinx_versal_aiedge for custom hardware

- Make the hardware settings the defaults and qemu as variants

Closes #4693
2022-08-23 07:55:25 +10:00
Chris Johns
a329579ed5 cpukit/include: Fix including in C++
UPdates #4706
2022-08-22 08:30:00 +10:00
Chris Johns
f5233fe51c cpukit/include: Fixes for C++
Updates #4706
2022-08-22 08:30:00 +10:00
Chris Johns
eae542c02f spec/librtemscpu: Fix installed headers
- pci.h is only for sparc

- keyimpl.h is not referenced and so not needed

Updates #4705
2022-08-22 08:30:00 +10:00
Chris Johns
bb09755086 spec/bsps/aarch64: Install ELF machine types for libdl
Updates #4705
2022-08-22 08:30:00 +10:00
Chris Johns
e49a1c9b38 spec/bsps: Do not install tm27.h
Updates #4705
2022-08-22 08:30:00 +10:00
Ryan Long
f045b9ddd8 psxkey07/init.c: Add pragma for gcc 12 warning
Updates #4662
2022-08-19 15:34:47 -05:00
Ryan Long
f60f349d86 psxclock/init.c: Change print format for warning
Updates #4662
2022-08-19 15:34:47 -05:00
Ryan Long
978022eeb0 ttest01/test-checks.c: Initialize variables
These uninitialized variables were causing warnings to be generated.

Updates #4662
2022-08-19 15:34:47 -05:00
Ryan Long
a447b9b377 malloctest/init.c: Added pragmas to address gcc 12 warnings
Updates #4662
2022-08-19 15:34:47 -05:00
Ryan Long
dc0dcccf41 dl09/dl-load.c: Fix gcc 12 warning
Changed format of size_t variable being printed.

Updates #4662
2022-08-19 15:34:47 -05:00
Ryan Long
b092ad57e2 cpu.h: Fix gcc 12 warnings
Added two pragmas to address, and changed the value of
AARCH64_EXCEPTION_MAKE_ENUM_64_BIT to INT_MAX because the old value was not
in range of an int.

Updates #4662
2022-08-19 15:34:47 -05:00
Ryan Long
9e2289785b test.h: Add pragma for gcc 12 warning
Updates #4662
2022-08-19 15:34:47 -05:00
Ryan Long
5b87591515 schedulerpriority.h: Fix gcc 12 warning
Changed the size of the array to 1 to get rid of the warning.

Updates #4662
2022-08-19 15:34:47 -05:00
Ryan Long
c55bd16037 percpu.h: Add pragma for gcc 12 warning
Updates #4662
2022-08-19 15:34:46 -05:00
Ryan Long
df3fa4e005 interr.h: Fix gcc 12 warning
The warning that this fixes states that "ISO C restricts enumerator values to
range of 'int'."

Updates #4662
2022-08-19 15:34:46 -05:00
Ryan Long
f930206724 linkersets.h: Fix gcc 12 warning
Changing the offset from 0 to 1 got rid of a warning stating that offset 0 is
out of bounds.

Updates #4662
2022-08-19 15:34:46 -05:00
Ryan Long
ec7d6c092f threads.h: Add pragmas to get rid of gcc 12 errors
Updates #4662
2022-08-19 15:34:46 -05:00
Sebastian Huber
21a36ed19b bsps: Fix .data.rel.ro placement
The .data.rel.ro* linker input section pattern accidentally matches with
writeable data those symbol name starts with "ro".

Close #4701.
2022-08-12 10:10:17 +02:00
Joel Sherrill
996d18c212 psxtimer_face01: Improve coverage and documentation
Updates #4691.
2022-08-11 13:10:11 -05:00
Duc Doan
c655c72d05 build/cpukit: Add confdefs/face.h to install rule
Updates #4691
2022-08-11 15:49:15 +10:00
Joel Sherrill
36895bd2c5 cpukit/include/rtems/test-info.h: Change @returns to @return 2022-08-10 14:15:47 -05:00
Joel Sherrill
b6e00691ff psxtimer0[12]/psxtimer.c: Reformat file header. 2022-08-10 14:15:46 -05:00
Joel Sherrill
4b04589b09 Add support for CONFIGURE_POSIX_TIMERS_FACE_BEHAVIOR
This adds the configure option CONFIGURE_POSIX_TIMERS_FACE_BEHAVIOR
which allows the application to choose whether to have the POSIX
timer_create() function follow the behavior defined by POSIX or
the FACE Technical Standard.

Updates #4691.
2022-08-10 14:15:46 -05:00
Sebastian Huber
cf3d2b37c8 rtems/malloc.h: Add API level Doxygen group
The interfaces in the MallocSupport group belong to the implementation.  They
are used by confdefs.h for example.
2022-08-10 15:41:58 +02:00
Sebastian Huber
f6a38fb254 validation: Use T_report_hash_sha256_update()
Add the direct BSP character ouput to the report hash.

Update #3716.
2022-08-10 07:51:19 +02:00
Sebastian Huber
7219d3c0e9 libtest: Add T_report_hash_sha256_update()
Update #3716.
2022-08-10 07:51:14 +02:00
Ryan Long
5500232a89 libdl: Refactor shared code in ARM and AArch64
rtl-mdreloc-arm.c was used as the basis for rtl-mdreloc-aarch64.c. This lead
to some code being shared by the two files. The code was consolidated into
rtl-unwind-arm.c.

Closes #4686
2022-08-08 12:02:03 -05:00
Sebastian Huber
c3c4525a32 posix: Avoid dead code in clock_nanosleep()
This issue was reported by Coverity Scan for RTEMS:

CID 1507760: Control flow issues (DEADCODE)

Closes #4690.
2022-08-05 08:20:58 +02:00
Chris Johns
c36d608079 testsuite: Fix warnings
Updates #4662
2022-08-05 07:54:13 +10:00
Chris Johns
46131ce0e1 libdl: Fix warnings on 64bit architectures
Updates #4662
2022-08-05 07:54:13 +10:00
Chris Johns
1a883b9b55 testsuite/psxclock: Check setting realtime clock does not effect sleeping tasks
Closes #4690
2022-08-05 07:53:10 +10:00
Sebastian Huber
52b7a5840a build: Install <rtems/score/gcov.h>
Update #4670.
2022-08-04 19:37:46 +02:00
Sebastian Huber
c64c638f6d posix: Fix relative CLOCK_REALTIME sleep
A relative CLOCK_REALTIME time out shall not be affected by CLOCK_REALTIME
changes through clock_settime().  Since our CLOCK_REALTIME is basically just
CLOCK_MONOTONIC plus an offset, we can simply use the CLOCK_MONOTONIC watchdog
for relative CLOCK_REALTIME time outs.

Update #4690.
2022-08-04 07:55:30 +02:00
Chris Johns
071640d310 libmisc/shell: Add an 'rtems' command to report a running build
- Report version, cpu, bsp, tools and options.
2022-08-03 10:46:10 +10:00
Sebastian Huber
4d77f725ca sp54: Fix test case
Since commit 6a6580331d, the local table is
zero-initialized.  Use an initial object control block instead.

Update #4678.
2022-08-01 09:15:36 +02:00
Ryan Long
1c6ac88f93 cpukit/libdl/rtl-sym.c: Fix increment of variable
In rtems_rtl_symbol_global_add() the loop that gets to the end of the symbol
table used "unsigned long" to increment the index for the table. For most
architectures this resulted in 4, but with AArch64, it results in 8. This
resulted in the symbols being read in wrong. Changing this to void* along with
changing the RISC-V specific code for 8 byte pointers in rtems-tools to work
independent of the architecture.

Updates #4673
Closes #4682
2022-07-29 08:32:47 -05:00