Commit Graph

37355 Commits

Author SHA1 Message Date
Joel Sherrill
fa84f51442 testsuites/validation/tx-call-within-isr.c: Address dangling pointer
On the genmcf548x BSP variants, the "request" local variable was
flagged as having a pointer taken and passed to subroutines. GCC
is unable to detect that the "request" variable is removed from
the chain in an ISR. Disabled -Wdangling-pointer for the single
test function CallWithinISR().
2025-09-19 19:01:31 +00:00
Joel Sherrill
ad60ce8c2c bsps/*acpi*: Address unterminated string warnings
The ACPI source has multiple tables where a Name field is defined.
The name field is a character array with a length of 4. All of the
string initializers are four characters plus a NUL. The code is
careful to use strn*() functions and intentionally avoids assuming
there is space for the NUL. With lots of entries in the various
arrays, this was clearly a design decision to save space.

This was caught by GCC's -Wunterminated-string-initialization
warning. The solution used is to use the "nonstring" attribute
recommended by the GCC manual.

Closes #5329
2025-09-19 18:56:55 +00:00
Joel Sherrill
78e050f603 cpukit/score/src/kern_ntptime.c: Negative Shift Value Warning
The code in question was shifting a signed integer. This was
caught by the -Wshift-negative-value GCC warning.

Closes #5339.
2025-09-18 17:48:06 -05:00
Gedare Bloom
948bbec7f6 shell: add noreturn attribute to err.h 2025-09-18 14:14:15 -06:00
Joel Sherrill
fd9f54ed23 pipe support: Update attribution email and relicense to 2-BSD
Wei Shen gave permission to relicense and asked to change the
email address to match that used on GitHub.

Updates #3053.
2025-09-18 09:26:39 -05:00
Joel Sherrill
21a6957d18 testsuites/sptests/sp34/changepri.c: Remove include of tm27-default.h
The file tm27-default.h is considered an internal flag. Accidentally
copying and pasting this include in while fixing attribution headers
was a mistake. Removing the line.
2025-09-18 07:45:35 -05:00
Christian Mauderer
1bb370b644 cpukit/jffs2: Fix unaligned writes
The code in flashio.c had a special case for handling unaligned buffers
during writes. That code did roughly the following:

If the size or start address of the buffer is not aligned to a word:
* align the size up to the next word
* create a temp buffer on heap or stack with the new size
* copy the data from write buffer to this temp buffer
* write the temp buffer with the _new_ size to the flash
* tell the code above, that the original size has been written

That means, that in certain cases, one to three random bytes have been
written to the flash. That is definitively not correct.

The special cases that trigger the behaviour seem to happen quite often
when using the RTEMS functions to unpack a .tar.gz with files in the
range of a few megabytes stored on the JFFS2 file system to the same
file system.

The RTEMS interface for flash drivers doesn't define any alignment
requirements. Therefore that code is not necessary and can just be
removed to solve these issues.
2025-09-17 15:12:27 +02:00
Joel Sherrill
ba3acfd3d0 misc: Fix empty body warnings
Address the small number of cases where an empty body occurred in
an if, else, or do while.
2025-09-15 16:25:37 +00:00
Joel Sherrill
4728346362 testsuites/sptests/sp*: Update attribution per git history
These files were written by Joel Sherrill with some being based
on descriptions from user reports.
  testsuites/sptests/sp34/changepri.c
  testsuites/sptests/sp52/sp52impl.h
  testsuites/sptests/sp67/init.c

Updates #3053.
2025-09-15 16:24:50 +00:00
Joel Sherrill
76d37a714e libdebugger/rtems-debugger-arm.c: Fix using defined() in expansion
The definition of NEEDS_THUMB_SWITCH was not portable and flagged by
the GCC -Wexpansion-to-defined. It is not portable to expand a macro
which uses futher cpp directives.

Closes #5328.
2025-09-15 16:24:17 +00:00
Joel Sherrill
4beeafe1d7 m68k/genmcf548x: Add attribution for embedded brains
Per git commit history, these files were submitted by Thomas
Doerfler. They have given permission.

Update #3053.
2025-09-15 16:22:13 +00:00
Joel Sherrill
600b76286e arm/smdk2410: Add proper attribution
This change adds attribution as appropriate for Ray Xu, Jay Monkman,
and Philippe Simons. The attribution is based on git archeology and
current permissions to relicense. Some of the code given attribution
was from the gp32 BSP which required looking at the 4.8 branch to
get attribution.

  - Work by Ray Xu and Jay Monkman is now 2-BSD
  - Work by Philipe Simon is GPL 2.0 w/RTEMS exception

Updates #3053.
2025-09-12 09:46:03 -05:00
Joel Sherrill
3e7776db83 spedfsched03: Relicense to 2-BSD
This code was submitted by Petr Benes who has given permission
to relicense.

Updates #3053.
2025-09-11 10:04:52 -05:00
Mazen Adel Elmessady
f929bcba5b cpukit/posix: Added pthread clock functions
Added pthread_cond_clockwait(), pthread_mutex_clocklock()
pthread_rwlock_clockrdlock() and pthread_rwlock_clockwrlock()
that are new in POSIX Issue 8. Also added tests.
The implementation used the timed versions of these functions
as a reference.

Updates
rtems/programs/gsoc#69
2025-09-10 19:56:50 +00:00
Kinsey Moore
509ce2fde4 cpukit/flashdev: Remove unnecessary reinitialization 2025-09-10 18:56:24 +00:00
Joel Sherrill
c4b62666c7 m68k/av5282: Add license and attribution as appropriate
This change reflects adding attribution based on the initial
submitter per git history. Most files were from Eric Norum
and he has given permission to relicense to 2-BSD. One file
was from Mike Bertosh whom we are still trying to contact.
That file is assumed to have been submitted under the GPL
w/exception as was the norm when it was submitted.
2025-09-10 18:53:59 +00:00
Joel Sherrill
6dacc5bd9a testsuites/sptests/sp29/init.c: Add attribution and license
This file was added in 1999 by me per git history.
2025-09-10 18:52:51 +00:00
Joel Sherrill
2f0133e582 bsps/powerpc/gen5200/include/tm27.h: Add attriibution and 2-BSD
This file was mechanically split from bsp.h which was submitted
by Thomas Doerfler. Updating license and SPDX to reflect that.
2025-09-09 16:45:12 -05:00
Joel Sherrill
888e5a5d25 bsps/*: Correct spelling of copyright
Multiple files had this spelled incorrectly.
2025-09-09 11:43:24 -05:00
Joel Sherrill
f2bbe99804 cpukit/.../m68k/qsm.h, sim.h: Update to Two Paragraph BSD
John Gwynne gave permission to relicense his submissions to
Two Paragraph BSD.

Updates #3053.
2025-09-09 16:13:02 +00:00
Aaron Nyholm
f93f3b87c8 flashdev: Added missing copyright 2025-09-09 16:09:49 +00:00
Joel Sherrill
60e392e621 bsps/.../*/include/tm27.h: Add attribution to one-line implementations
Many tm27.h implementations were one line with no attribution.
Some were simply including a default non-functional implementation.
Others were including a header file giving an implementation based
on a standard counter/timer. This patch gives attribution based on
the split out being done by Sebastian Huber in 2017.
2025-09-08 20:02:56 +00:00
Joel Sherrill
c55cf81db1 sppagesize/init.c: Add SPDX annotation
Apparently this was missed in a previous commit.
2025-09-08 13:20:15 -05:00
Joel Sherrill
eb6cbbf997 arm, rtl22xx: Relicense Ray Xy contributions to 2-BSD
Permission granted to relicense.

Updates #3053.
2025-09-08 12:25:34 -05:00
Sebastian Huber
cfe232c935 validation: Rearrange storage-qualifier
Place _Thread_local after static to be in line with the rest of the
code.
2025-09-08 04:33:52 +02:00
Mazen Adel Elmessady
c6606de311 cpukit/posix: Add clock support to thread queue timeouts
Added new functions to thread queue infrastructure to support
clock-specific timeout operations, making it easier to integrate
POSIX Issue 8 clock functions.

Updates
rtems/programs/gsoc#69
rtems#24
2025-09-06 16:16:12 +00:00
Kinsey Moore
b898aa6203 cpukit/flashdev: Correct page/sector references 2025-09-05 13:13:19 -05:00
Sunil Hegde
ac67445c84 cpukit/libgnat/ada_intrsupp.c: Fixed formatting
Fixed formatting based on suggestions by format diff.
2025-09-04 19:06:13 -05:00
Sunil Hegde
ccef4b74d0 cpukit/libgnat/ada_intrsupp.c: removed uses of set_vector()
removed uses of set_vector in __gnat_interrupt_connect()
and __gnat_interrupt_set()

Updates #5215
2025-09-04 19:06:13 -05:00
Bhavya Shah
4646d614c3 cpukit/libfs/imfs: Fix the maximum file size calculation
Fixes #5319
2025-09-04 18:26:46 -05:00
Joel Sherrill
022dd54744 sptests/spcbssched*, spqreslib: Add header for Petr Benes
These files did not have copyright, license, or SPDX. Per git log
these files were authored by Petr Benes who has other code in the
RTEMS source base and given permission to use BSD-2.

Updates #3053
2025-09-04 18:13:31 -05:00
Kinsey Moore
7a36500b6b Revert "spec/build/cpukit/optwarn.yml: Add -Wcalloc-transposed-args"
This reverts commit 71670c9cb0.

This option is not available on GCC 13.
2025-09-04 17:30:35 -05:00
Martin Erik Werner
b19d1c49ed cpukit: Correct region documentation notes
Update the rtems_region_get_information() and
rtems_region_get_information() documentation with various more or less
minor wording fixes:

* "obtain a diagnostic information." ->
  "obtain diagnostic information."

* "This method forms am O(n)" ->
  "This directive performs an O(n)"

* "scan of the free in the region" ->
  "scan of the free blocks in the region"

* "many used blocks and a much smaller number of used blocks" ->
  "many used blocks and a much smaller number of free blocks"

These changes were generated from rtems-central.
2025-09-04 15:46:44 +00:00
Joel Sherrill
71670c9cb0 spec/build/cpukit/optwarn.yml: Add -Wcalloc-transposed-args
Add check for calls to calloc() having the size (sizeof) and
number of elements (int) swapped.
2025-09-04 15:43:45 +00:00
Joel Sherrill
017ec9440e cpukit/libmisc/regulator/regulator.c: Fix order of calloc() arguments
Address calls to calloc () which swap the number of elements and
size of each element argument.
2025-09-04 15:43:45 +00:00
Joel Sherrill
65cac69a1c cpukit/libblock/src/bdbuf.c: Fix order of calloc() arguments
Address calls to calloc () which swap the number of elements and
size of each element argument.
2025-09-04 15:43:45 +00:00
Joel Sherrill
c0fba626cb spec/build/cpukit/optwarncc.yml: Add -Wold-style-declaration
Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration. Adding
this warning to the default set to let us eliminate violations.
2025-09-03 09:15:17 -05:00
Joel Sherrill
0dc1f06dbc testsuites/*: Fix old style declaration
Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration.
2025-09-03 09:15:17 -05:00
Joel Sherrill
a162a5cdcf cpukit/include/*: Fix old style declaration
Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration.
2025-09-03 09:15:17 -05:00
Joel Sherrill
b960eaf405 bsps/x86_64/*: Fix old style declaration
Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration.
2025-09-03 09:15:17 -05:00
Joel Sherrill
72837b30d8 bsps/shared/*: Fix old style declaration
Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration.
2025-09-03 09:15:17 -05:00
Joel Sherrill
c4779c4b4e bsps/riscv/*: Fix old style declaration
Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration.
2025-09-03 09:15:17 -05:00
Joel Sherrill
817ddf0750 bsps/powerpc/*: Fix old style declaration
Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration.
2025-09-03 09:15:17 -05:00
Joel Sherrill
02fbe6e9b5 bsps/include: Fix old style declaration
Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration.
2025-09-03 09:15:17 -05:00
Joel Sherrill
d3a1757ac7 bsps/arm: Fix old style declaration
Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration.
2025-09-03 09:15:16 -05:00
Sebastian Huber
312ea98ed2 validation: Use Markdown formatting
This file is generated from specification items.  Use Markdown format.
2025-09-02 16:54:57 +00:00
Sebastian Huber
79ca48adcc rtems: Use single '`' for code phrases
These files are generated from specification items.  Use Markdown
format.
2025-09-02 16:54:57 +00:00
Sebastian Huber
33e3b09c16 rtems: Use '-' instead of '*' for Doxygen lists
These files are generated from specification items.  The Markdown
formatting tool used for the documentation sources requires the use
of '-' for lists instead of '*'.
2025-09-02 16:54:57 +00:00
Sebastian Huber
d07bf743a3 rtems: Add missing copyright
Add copyright for rtems_barrier_get_number_waiting().
2025-09-02 16:54:57 +00:00
Sebastian Huber
f691b48e4d appl-config: Replace reST role
Doxygen does not understand the :term: role.
2025-09-02 16:54:57 +00:00