Amar Takhar
001b368a50
contrib: Re-apply changes from initial import
...
These changes are from:
cb78150d86
The Doxygen comments have been removed to allow for easier importing in the
future.
2025-08-01 08:43:29 +10:00
Amar Takhar
3556b422f8
contrib: Import cmsis-device-h7 1.10.4
...
URL
https://github.com/STMicroelectronics/cmsis_device_h7.git
Hash
faccfec37f82f7a1319c21638111b0f7335de7fe
2025-08-01 08:43:29 +10:00
Amar Takhar
1731074a75
contrib: Import stm32h7xx_hal_driver 1.11.3
...
URL
https://github.com/STMicroelectronics/stm32h7xx_hal_driver.git
Hash
fec141ce999da655a48e1a15db83a72d564a1312
2025-08-01 08:43:29 +10:00
Kinsey Moore
d19852f3f7
cpukit/libdebugger/server: Use generic TLS accessor
...
This updates the libdebugger server to use a generic TLS area access
mechanism so that it works across all supported architectures.
2025-07-30 13:41:29 +10:00
Jeremy Lorelli
d8c5b7fa85
bsps/uC5282: Convert tabs to spaces
...
Most of these files were mixed spaces/tabs, this normalizes it
2025-07-28 17:01:56 -05:00
Jeremy Lorelli
272d355c42
malloctest: Add tests for malloc_usable_size
...
A few tests for malloc_usable_size.
2025-07-26 21:44:11 -04:00
Jeremy Lorelli
20baae458d
cpukit/libcsupport: Implement malloc_usable_size
...
Implement malloc_usable_size to get the underlying heap block size of a
memory address on the heap.
Closes #4503
2025-07-26 21:44:11 -04:00
Joel Sherrill
b7f35f9db9
bsps/m68k/mcf5235/console/console.c: Fix misleading indentation
...
GCC warned that the indentation was misleading. Corrected the
format and added braces on the while.
2025-07-27 01:26:48 +00:00
Joel Sherrill
1a2f6e248b
psxcancel01/init.c: Correct pthread and cleanup prototypes
...
c20dc9c7aa added test code which included a cancellation cleanup
handler and a pthread body which were of the wrong prototype. With
GCC 15, this is now an error.
2025-07-25 10:06:56 -05:00
tangkun
c20dc9c7aa
cpukit/posix/src/clocknanosleep.c: fix cancellation points
...
According to the POSIX standard, sleep/nanosleep/clock_nanosleep
should be treated as cancellation points.
Updates #4675
2025-07-25 09:19:41 -05:00
Joel Sherrill
a350345e29
arm/.../stm32h757i-eval/system_stm32h7xx.c: Fix misleading indentation
...
GCC warned that the incorrectly indented line could be misinterpreted
as needing to belong to the previous for loop which does not have
braces.
2025-07-24 21:20:17 -05:00
Joel Sherrill
9f5913e132
cpukit/libdl/rtl-mdreloc-powerpc.c: Fix multiple warnings
...
Incorrect format specifier: printf() adjusted to be clean on both 32
and 64 bit PowerPCs.
Defined but not used: Adjusted _ARCH_PPC64 ifdef's to properly
eliminate code not used on 64 bit PowerPCs.
2025-07-24 22:02:30 -04:00
Joel Sherrill
86253b9e05
bsps/powerpc/gen5200/mscan/mscan.c: Fix format specifier warning
...
Calling rtems_panic() and should have used %ul.
2025-07-24 22:01:38 -04:00
Joel Sherrill
54f8249915
bsps/mvme5500: Remove the BSP
...
MVME5500 was deprecated in 6 and will not be present in 7.
The Beatnik is recommended.
Updates rtems/rtos/rtems#4160
2025-07-24 22:00:04 -04:00
Joel Sherrill
41f6f28c6d
bsps/powerpc/ss555/start/bspstart.c: Fix array bounds warning
...
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 21:59:20 -04:00
Mazen Adel Elmessady
d1f34a45cc
testsuites/libtests: Added quick_exit tests
...
Added the tests for quick_exit() and
at_quick_exit() in textsuits/libtests/exit04
2025-07-24 20:50:43 -05:00
Joel Sherrill
4773863245
bsps/x86_64/amd64/clock/clock.c: Correct printf() format specifiers
...
The DBG_PRINTF() is disabled by default which meant the warning
was normally hidden.
2025-07-24 20:37:11 -05:00
Joel Sherrill
cef5542bc0
x86_64/include/rtems/score/x86_64.h: Use standard variadic macro
...
The DBG_PRINTF() macro was using the GNU extension variadic macro
style. Switched to standard C style variadic macro, printk() so
safer for debug than printf(), and included needed files.
2025-07-24 20:37:11 -05:00
Joel Sherrill
ccc5651c99
altera-cyclone-v/contrib/.../hwmgr/*.c: Fix warnings
...
Some of these were missing prototypes. Usually this could be addressed
by adding static or conditionally compiling unused functions out.
2025-07-24 20:36:11 -05:00
Joel Sherrill
2f04281682
bsps/mips/malta/pci/pci.c: Correct printf() format specifiers
...
Switched to PRIu32.
2025-07-24 20:26:15 -05:00
Joel Sherrill
a1c30b7f71
mghttpd: Remove Mongoose httpd
...
Users should migrate to Civitweb.
Closes #5304 .
2025-07-24 20:09:59 -05:00
Joel Sherrill
b934583853
bsps/mips/include/libcpu/au1x00.h: Correct au_sync() prototype
...
GCC warns that ‘static’ is not at beginning of the function
declaration.
2025-07-24 19:48:22 -05:00
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