Commit Graph

37202 Commits

Author SHA1 Message Date
Amar Takhar
bea1041fd6 readme: Add zlib
No special instructions required.
2025-07-24 23:26:34 -04:00
Amar Takhar
7adb0196ef cpukit: Delete zlib and add to build
Includes had to be added to jffs2 and cpukit.
2025-07-24 23:26:34 -04:00
Amar Takhar
cb936e3a66 contrib: Apply changes to zlib
This is from:

0ab6c7bc58
2025-07-24 23:26:34 -04:00
Amar Takhar
f1cdc5a738 contrib: Import zlib 1.3.1
URL
https://github.com/madler/zlib

Hash
51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf
2025-07-24 23:26:34 -04:00
Amar Takhar
87fcc71e90 readme: Add FastLZ 2025-07-24 23:26:34 -04:00
Amar Takhar
6e356130e2 cpukit: Remove FastLZ and add to build.
This moves the files to contrib/cpukit/fastlz
2025-07-24 23:26:34 -04:00
Amar Takhar
c19509cce6 contrib: Apply FastLZ changes
This appears to be the warning fix from:

09d811b8a5
2025-07-24 23:26:34 -04:00
Amar Takhar
b4b8070f14 contrib: Import FastLZ 0.1.0
URL
https://github.com/ariya/FastLZ/

Hash
f1217348a868bdb9ee0730244475aee05ab329c5
2025-07-24 23:26:34 -04:00
Amar Takhar
5890091fbd contrib: Add a README file with instructions.
The instructions are pretty straight forward.
2025-07-24 23:22:26 -04:00
Amar Takhar
a66548a4d9 bsps: Delete stm32u5xx HAL
Also add new build locations and include directories.

This renames 4 files to their original names that had no changes:

stm32u5xx_hal_msp.c ->
  stm32u5xx_hal_msp_template.c

stm32u5xx_hal_timebase_rtc_wakeup.c ->
  stm32u5xx_hal_timebase_rtc_wakeup_template.c

stm32u5xx_hal_timebase_tim.c ->
  stm32u5xx_hal_timebase_tim_template.c

stm32u5xx_hal_timebase_rtc_alarm.c ->
  stm32u5xx_hal_timebase_rtc_alarm_template.c

There is one file left behind that will be sorted out in the future:

stm32u5/hal/system_stm32u5xx.c

It comes from

07b6fedf4b/Projects/NUCLEO-U575ZI-Q/Applications/ThreadX/Tx_LowPower/Src/system_stm32u5xx.c

As per Christian on Discord.
2025-07-24 23:22:26 -04:00
Amar Takhar
77ca8f84b8 contrib: Add changes to stm32u5 HAL
This includes the changes from:

03aedc0539
317cfa50d0
2025-07-24 23:22:26 -04:00
Amar Takhar
4a7f7d5918 contrib: Import stm32u5xx-hal-driver 1.5.0
URL
https://github.com/STMicroelectronics/stm32u5xx-hal-driver

Hash
55765b13c9425e79c5bbc1dda00973858e1fb437
2025-07-24 23:22:26 -04:00
Amar Takhar
e79f0d121a bsps: Remove stm32h7xx_hal
These have now moved to:

contrib/bsps/arm/stm32h7/cmsis-device-h7
contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver

Also add include directories to the build.
2025-07-24 23:22:23 -04:00
Amar Takhar
cd3c212a35 contrib: Re-apply changes
This includes changes from commits:

b714e4a809
ae5655b88b
b3be636863
6dee307542
2025-07-24 22:24:10 -04:00
Amar Takhar
332a616d76 contrib: Re-apply changes from initial import
These changes are from:

cb78150d86

A comment was removed from the top of the file noting its modification no need
for this as the changes are in a separate commit now.
2025-07-24 22:24:10 -04:00
Amar Takhar
61bb901e97 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-07-24 22:24:10 -04:00
Amar Takhar
556866e918 contrib: Import cmsis-device-h7 1.10.4
URL
https://github.com/STMicroelectronics/cmsis_device_h7.git

Hash
faccfec37f82f7a1319c21638111b0f7335de7fe
2025-07-24 22:24:10 -04:00
Amar Takhar
40ea348e01 contrib: Import stm32h7xx_hal_driver 1.11.3
URL
https://github.com/STMicroelectronics/stm32h7xx_hal_driver.git

Hash
fec141ce999da655a48e1a15db83a72d564a1312
2025-07-24 22:24:09 -04: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