]> www.infradead.org Git - users/borneoa/openocd-next.git/commitdiff
rtos: sort the rtos by alphabetic order
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 14 Jun 2025 13:07:50 +0000 (15:07 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 29 Jun 2025 07:32:34 +0000 (07:32 +0000)
Add comments to require the list of rtos to be kept sorted.

Change-Id: Iecf9250a14f6593d0a24a9f9b8930c0ec8d74bd2
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8953
Tested-by: jenkins
src/rtos/rtos.c
src/rtos/rtos.h

index 216129b9718313be24a5ad69916bc8d696372b38..2ccccf1b0de78378fcfc2bc3de1e9ab8976d515d 100644 (file)
 #include "server/gdb_server.h"
 
 static const struct rtos_type *rtos_types[] = {
-       &threadx_rtos,
-       &freertos_rtos,
-       &ecos_rtos,
-       &linux_rtos,
+       // Keep in alphabetic order this list of rtos, except hwthread
        &chibios_rtos,
        &chromium_ec_rtos,
+       &ecos_rtos,
        &embkernel_rtos,
+       &freertos_rtos,
+       &linux_rtos,
        &mqx_rtos,
-       &ucos_iii_rtos,
        &nuttx_rtos,
        &riot_rtos,
-       &zephyr_rtos,
        &rtkernel_rtos,
-       /* keep this as last, as it always matches with rtos auto */
+       &threadx_rtos,
+       &ucos_iii_rtos,
+       &zephyr_rtos,
+
+       // keep this as last, as it always matches with rtos auto
        &hwthread_rtos,
 };
 
index 05beab1459077941cab559fda312f4d005f15aff..dbaa7e8ce8e21831aa8866d7b984e365f3c371e7 100644 (file)
@@ -136,6 +136,7 @@ int rtos_read_buffer(struct target *target, target_addr_t address,
 int rtos_write_buffer(struct target *target, target_addr_t address,
                uint32_t size, const uint8_t *buffer);
 
+// Keep in alphabetic order this list of rtos
 extern const struct rtos_type chibios_rtos;
 extern const struct rtos_type chromium_ec_rtos;
 extern const struct rtos_type ecos_rtos;