Commit Graph

37173 Commits

Author SHA1 Message Date
Joel Sherrill
b8408fe39b score/cpu/mips/include/rtems/score/cpu.h: Add single field to structure
GCC warned that the Context_Control_fp structure had no fields.
Added an unused field when there is no FP support.
2025-07-24 19:29:48 -05:00
Joel Sherrill
95a90047df bsps/arm/lpc176x/include/bsp/lpc176x.h: Correct ADC_DR_VALUE() macro
ADC_DR_VALUE() should used starting bit 4 not 6. See the issue
for a link to the LPC17xx manual for reference.

Closes #5293.
2025-07-24 19:29:11 -05:00
Christian Mauderer
c16bb34650 bsps/imxrt: Fix warning
The implementation of the BUILD_ASSURE in mcux-sdk causes a warning. Use
a C11 _Static_assert instead.

Updates #5300
2025-07-24 19:26:24 -05:00
Joel Sherrill
66f60eb050 psx08: Correct signature of a_thread_func()
This signature was not correct for a pthread.
2025-07-24 19:21:51 -05:00
Kinsey Moore
ddf50dc868 cpukit/libdebugger: Add support for TLS variables
This adds support for the "vGetTLSAddr" GDB query which retrieves the
address of a TLS variable by offset from the beginning of the TLS memory
space for the given thread. This offset does not include the size of the
thread control block which is at the beginning of every TLS area as used
by RTEMS. Notably, the returned address is big-endian rather than the
little-endian typical with other responses.

This functionality does not include retrieval of addresses for TLS
variables hosted in loadable modules, only TLS variables in the host
binary.
2025-07-24 19:20:05 -05:00
yang.zhang
08c005764d posix: pthread_sigmask should return error number when fail
According to the Posix specification:
Upon successful completion pthread_sigmask() shall return 0;
otherwise, it shall return the corresponding error number.
2025-07-24 19:06:30 -05:00
Joel Sherrill
58795be2cb bsps/m68k/genmcf548x/console/console.c: Fix misleading indentation
Added braces and corrected indentation to reflect intent.
2025-07-24 18:36:27 -05:00
Joel Sherrill
e856c4b985 bsps/m68k/genmcf548x/start/bspstart.c: Fix negative array subsscript
GCC warned that the pointer magic was resulting in an array bounds
violation. The solution is to use uintptr_t when doing abusive
pointer math.
2025-07-24 18:31:11 -05:00
Joel Sherrill
f95385da23 m68k/genmcf548x/start/init548x.c: Fix warning for comparing two arrays
GCC warnings when comparing the starting addresses of two arrays when
using just the name of the array. Changes to use the address of
element 0 which resolved the warning.
2025-07-24 18:29:51 -05:00
Joel Sherrill
262cbd69f3 bsps/m68k/mcf5329/start/init5329.c: Address comparison of arrays
GCC warned about comparing arrays by name. Changed to casting all
array names to (uintptr_t).
2025-07-24 18:28:56 -05:00
Joel Sherrill
1a394709eb bsps/or1k/generic_or1k/btimer/btimer.c: Address misleading indentation
GCC warned that the indentation was misleading.
2025-07-24 18:28:16 -05:00
Joel Sherrill
0a5890c623 bsps/riscv/niosv/flash/altera_epcq_driver.c: Variable unused after read
The driver was reading from memory and GCC warning that the value
read was ignored. Added annotation to indicate this was intentional.
2025-07-24 18:23:01 -05:00
Joel Sherrill
5e2ac1584e cpukit/libblock/src/bdbuf.c: Uninitialized variable warning
On some BSP builds, the variable q was reported as used before
it was initialized. This is a false positive. The variable is now
initialized to NULL to prevent this.
2025-07-24 18:21:59 -05:00
Joel Sherrill
40769810ff cpukit/libfs/src/jffs2/src/fs-rtems.c: Used before initialized warning
Initialized pointer variable to address used before initialized.
2025-07-24 18:16:58 -05:00
Joel Sherrill
82552c7e4d cpukit/score/cpu/m68k/cpu_asm.S: Delete #warning directive
This was warning about the FP context not being restored
when a thread is restarted. The current and long standing
execution path is through _Thread_Handler() which does restore
the FP context.
2025-07-24 18:14:32 -05:00
Joel Sherrill
5af4eda125 cpukit/score/cpu/mips/cpu_asm.S: Add nops in branch delay slot
The assembler was generating warnings about not having a nop
in a branch delay slot. In both cases, the branch needed one.
2025-07-24 18:11:00 -05:00
Joel Sherrill
ecb71667e1 cpukit/score/cpu/or1k/*: Move _CPU_ISR_install_vector() to cpu.c
This function was static inline which means that it must compile
cleanly for all versions of C and C++. Newer C standards make it
an error to cast between incompatible function types. Moving this
function to cpu.c from cpu.h allows the C standard version required
to be narrowed from "whatever the user wants" to the one version
that is used to compile RTEMS.
2025-07-24 17:58:57 -05:00
Joel Sherrill
cc0823b2ca score/cpu/or1k/include/.../or1k-utility.h: enum value must be int
GCC gave the warning that "ISO C restricts enumerator values to
range of 'int' before C23 [-Wpedantic]."

Changed place holder value from 0xffffffff to 0x7fffffff.
2025-07-24 17:57:00 -05:00
Joel Sherrill
39d6c3bd26 testsuites/sptests/spconfig01/init.c: Eliminate hard-coded warnings
This test had two #warnings which were always in the build log.
Added a comment block and deleted the #warning directives.
2025-07-24 17:55:38 -05:00
Joel Sherrill
abc34bc5a8 testsuites/validation/tx-call-within-isr.c: Fix comparision warning.
GCC generated a warning for "comparison of distinct pointer types
lacks a cast [-Wcompare-distinct-pointer-types]." Added a cast to
fix this.
2025-07-24 17:51:27 -05:00
Chris Johns
3a2b37826f libcsupport/termios: Wake receiver when ICANON settings change
Closes #5307
2025-07-24 17:41:22 -05:00
tangkun
8d73c4914e cpukit/posix/src/pthreaddetach.c: fix pthreaddetach issue
When calling pthread_detach on a thread which is already detached,
it should return EINVAL.
2025-07-24 17:39:13 -05:00
Kinsey Moore
e36bbd8e25 bsps/dev/spi/xqspipsu-flash-helper: Explain source
This adds a missing header block and better explains the provenance of
the xqspipsu-flash-helper files and their copyright status.
2025-07-24 17:31:48 -05:00
Kinsey Moore
fc9093723b bsps/include/dev/spi: Add missing extern and guard
This adds missing extern "C" declarations and a missing header guard.
2025-07-24 17:31:48 -05:00
Sunil-Hegde
ecab84ce29 bsps/m68k: removed set_vector() prototypes
removed all set_vector() function prototypes from
all the respective bsp.h header files and removed
bsps/shared/start/setvec.c from respective .yml files.
2025-07-24 17:29:55 -05:00
Sunil Hegde
e9cb088995 bsps/m68k: removed uses of set_vector()
removed uses of set_vector() accross all the files.
Changes were introduced in all tm27.h and clock.c
files.
2025-07-24 17:29:55 -05:00
Jacob Killelea
47802e7eb3 arm/raspberrypi: Specify an initial baud rate during startup
* Fixes #5256.

* Specify an initial baud rate to use during startup.
  After the PL011 code refactor in
  0f42153959, an initial baud rate
  is required. arm_pl011_first_open is called from boot_card and
  will fail without a baud rate specified. This can cause certain
  future uses of /dev/console, such as opening a shell, to fail.
2025-07-22 18:06:44 -07:00
Joel Sherrill
dd6e67b20c arm/xilinx-zynqmp/start/bspreset.c: Add include <bsp/bootcard.h>
Needed the include to have prototype of bsp_reset().
2025-07-17 17:13:36 -04:00
Joel Sherrill
66179533bf bsps/arm/atsam/spi/atsam_spi_bus.c: Add parentheses
Addressed GCC warning about the lack of parentheses.
2025-07-17 15:08:53 -05:00
Jeremy Lorelli
2ec78303eb uC5282/console/console.c: Fix misleading indentation warning
The rtems_interrupt_disable macros expand to some code that
is indented. GCC sees this as misleading indentation next
to the while loop without braces.
2025-07-16 12:15:47 -07:00
Kinsey Moore
4fb0632a4e spec/aarch64/xen: Reorder includes to fix link
The opto* include must come before the bspopts include or else the flags
from the opto* include get dropped which causes librtemscpu to build
without the function and data sections flag which causes link-time
errors because unused sections cannot be dropped. The mechanism here
should be better understood, but this fixes the build errors.
2025-07-16 15:34:26 +00:00
Kinsey Moore
d280e4c655 spec/aarch64/xen: Add missing SMP support file
This adds a file that didn't get pulled into the SMP commit.
2025-07-16 15:34:26 +00:00
lei huang
e1ce81a868 cpukit/shell: Fix NULL Pointer Dereference in Shell Memory Dump Commands 2025-07-15 19:05:58 -05:00
Joel Sherrill
e79a30378b cpukit/libdl/rtl-mdreloc-v850.c: Delete this file
This file should have been removed when the v850 port was removed.

Updates #5023
2025-07-16 09:04:48 +10:00
Joel Sherrill
32cf9ea0c6 score/cpu/moxie/.../cpu.h: Address unused variable warning
The Moxie does not implement the interrupt disable/enable functions
and this led to an unused variable warning. Just added proper
annotation to let GCC know it is intentionally unused.
2025-07-15 23:00:32 +00:00
Joel Sherrill
a8d0d9dc53 bsps/powerpc/ss555/include/tm27.h: Fix nested declaration warning
The macro Install_tm27_vector() included an extern for tm27IrqData
inside the scope of the macro. This generated a "nested extern
declaration warning. Moved the extern outside the scope.
2025-07-15 22:58:44 +00:00
Joel Sherrill
db19f09a21 bsps/powerpc/shared: Fix 32/64 and printf format specifier warnings
The PowerPC has both 32 and 64 bit CPUs within a single architecture
and collection of BSPs. This change set addresses cases where the
format specifier, type, or cast was not correct or portable across
32 and 64 bit environments.
2025-07-15 22:57:46 +00:00
Joel Sherrill
f12e733097 powerpc/beatnik/start/bspstart.c: Correct printf() format specifier
Use correct specifier for uintptr_t.
2025-07-15 22:53:30 +00:00
Joel Sherrill
2b06029e7d cpukit/libdl/rtl-mdreloc-moxie.c: Fix printf() warning
Use the correct format specifier (%d not %ld).
2025-07-15 22:48:23 +00:00
Joel Sherrill
ae0ef784a4 pc386/clock/ckinit.c: Fix warning in SMP build
Add cast on SMP_Action_handler registration to eliminate warning.
2025-07-15 22:45:22 +00:00
Joel Sherrill
e255c2888a libnetwork references misc: Remove libnetwork references
The legacy network stack has been moved to a separate package.
Remove references to it in odd places.
2025-07-15 22:36:46 +00:00
Joel Sherrill
ef1edd5bea microblaze_fpga/include/tm27.h: Fix unused variable warning
This implementation of the tm27 helpers is non-functional. It
needed to at least indicate that it was not using a parameter.
2025-07-15 22:35:48 +00:00
Sunil-Hegde
a8869154b4 bsps/nios2/nios2_iss: removed implementation of set_vector()
Deleted start/setvec.c and updated .yml file accordingly.
2025-07-14 17:15:36 -05:00
Sunil-Hegde
005d8fee6f bsps/nios2/nios2_iss: removed uses of set_vector()
removed uses of set_vector from clock.c and btimer.c
used rtems_interrupt_entry_install() and
rtems_interrupt_handler_install().
2025-07-14 17:15:36 -05:00
Christian Mauderer
16c706bafc bsps/stm32u5: Exclude from building dl13
This test requires ARM instruction support and causes build failures on
Thumb-only BSPs.

Updates #5289
2025-07-14 08:52:52 -05:00
huangshuhua
13cb96d1e3 posix/mmap: validate addr non-null before alignment check 2025-07-14 02:29:01 +00:00
Christian Mauderer
317cfa50d0 bsps/stm32u5: Fix warnings in HAL
The HAL has a few comparisons of a pointer with 0U instead of NULL. This
patch fixes that.

Fixes #5289
2025-07-12 15:44:41 -04:00
Christian Mauderer
3ac0e3c77e bsps/stm32u5: Fix warning in RTC
The function stm32u5_rtc_get_time is only used locally and therefore
should be static.

Update #5289
2025-07-12 15:44:41 -04:00
Christian Mauderer
1134358f49 bsps/stm32u5: Fix warning in bspstarthooks.c
This fixes a warning about comparing different pointer types.

Updates #5289
2025-07-12 15:44:41 -04:00
Christian Mauderer
689e1c6de9 bsps/stm32u5: Fix build error
The cortex_m33.h should not be included directly. It is already included
in the stm32u5xx.h and that file sets all necessary defines.

Updates #5289
2025-07-12 15:44:41 -04:00