Files
rtems/contrib
Sebastian Huber 26a73bcdec score: Flatten the red-black tree node
The red-black tree node held its links and its color in a nested
member.  The nesting came from the entry macro of the header which the
previous commit removed.  It served no purpose, and each access had to
name the nested member.

Move the links and the color into the node.  Change the prefix of the
fields from rbe_ of the entry to rbn_ of the node.  The Linux API
wrapper <linux/rbtree.h> renames the Linux fields with
"#define rb_left rbn_left" and "#define rb_right rbn_right".  Other
Linux compatibility layers such as the linuxkpi of FreeBSD define
rb_left and rb_right as object-like macros.  The prefix rbn_ is no
Linux name, so these macros leave the fields alone.

The tests sprbtree01 and ts-unit-no-clock-0 passed on the boards of
eight targets.

  Target                    Processor
  aarch64/zynqmp_apu        Cortex-A53
  LS1046A                   Cortex-A72
  arm/zynqmp_rpu_lock_step  Cortex-R5F
  arm/samrh71_flexram       Cortex-M7
  arm/xilinx_zynq_zc702     Cortex-A9
  riscv/mpfs_e51            E51
  riscv/mpfs_u54            U54
  sparc/gr740               LEON4

Update #5804.

Assisted-by: Claude:claude-opus-5-5 claude-code
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2026-10-14 15:20:12 +11:00
..

Contributed code to RTEMS

If it is located within this directory it is not maintained by the RTEMS project.

Updating

To update code in this directory follow these steps:

  1. Update code to the latest upstream version as a pure import.
  2. Create a tag for that import.
  3. Apply any changes required on top as separate commit(s).

Using this we will be able to diff between upstream versions and our own changes.

Commit message

In the import commit message add:

  1. Upstream hash if pulling from a repository
  2. Upstream version if release. If development version add hash.
  3. URL file was taken from or cloned from.

Tag format

The tag should always include the full path in the contrib directory with the version appended.

If there is no version or it is a hash use <dev version>-<hash>.

For example:

  • contrib/bsps/arm/stm32u5/stm32u5xx-hal-driver/1.5.0

The path is contrib/bsps/arm/stm32u5/stm32u5xx-hal-driver with 1.5.0 being the version.

No available version

If there is no version then take the commit date + hash used for the import for example with xz:

  • contrib/cpukit/xz-embedded/2015-11-03-e75f4eb

Current Sources

These are the current source directories and where they are from. Look at the Git log in order to find out version and update details

Directory Source
bsps/aarch64/psci/ https://github.com/freebsd/freebsd-src/blob/main/sys/dev/psci
bsps/aarch64/xilpdi/ https://github.com/Xilinx/embeddedsw/lib/sw_services/xilpdi
bsps/arm/efm32gg11/ https://github.com/SiliconLabs/gecko_sdk.git
bsps/arm/stm32h7/cmsis-device-h7/ https://github.com/STMicroelectronics/cmsis_device_h7.git
bsps/arm/stm32h7/stm32h7xx_hal_driver https://github.com/STMicroelectronics/stm32u5xx-hal-driver
bsps/arm/stm32u5/stm32u5xx-hal-driver https://github.com/STMicroelectronics/stm32h7xx_hal_driver.git
bsps/riscv/sbi https://cgit.freebsd.org/src/
cpukit/fastlz https://github.com/ariya/FastLZ
cpukit/utf8proc https://juliastrings.github.io/utf8proc/releases/
cpukit/libz https://github.com/madler/zlib
cpukit/uuid https://github.com/tytso/e2fsprogs/tree/master/lib/uuid
cpukit/xz-embedded https://github.com/tukaani-project/xz-embedded
cpukit/jffs2 https://github.com/torvalds/linux
cpukit/posix-newlib https://sourceware.org/newlib/
cpukit/riscv-opcodes https://github.com/riscv/riscv-opcodes
cpukit/fatfs http://elm-chan.org/fsw/ff/00index_e.html