mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-16 19:04:53 +08:00
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>
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:
- Update code to the latest upstream version as a pure import.
- Create a tag for that import.
- 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:
- Upstream hash if pulling from a repository
- Upstream version if release. If development version add hash.
- 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