jtag: fix minor typos
[fw/openocd] / src / rtos / rtos.c
index 22123482869566e56763c1c64daa29fab68efc8d..97ce255b924c386ed82458c8cb8421bce307585c 100644 (file)
@@ -38,6 +38,7 @@ extern struct rtos_type mqx_rtos;
 extern struct rtos_type uCOS_III_rtos;
 extern struct rtos_type nuttx_rtos;
 extern struct rtos_type hwthread_rtos;
+extern struct rtos_type riot_rtos;
 
 static struct rtos_type *rtos_types[] = {
        &ThreadX_rtos,
@@ -50,6 +51,8 @@ static struct rtos_type *rtos_types[] = {
        &mqx_rtos,
        &uCOS_III_rtos,
        &nuttx_rtos,
+       &riot_rtos,
+       /* keep this as last, as it always matches with rtos auto */
        &hwthread_rtos,
        NULL
 };
@@ -121,7 +124,7 @@ int rtos_create(Jim_GetOptInfo *goi, struct target *target)
 {
        int x;
        const char *cp;
-       struct Jim_Obj *res;
+       Jim_Obj *res;
        int e;
 
        if (!goi->isconfigure && goi->argc != 0) {
@@ -228,7 +231,7 @@ int rtos_qsymbol(struct connection *connection, char const *packet, int packet_s
        int rtos_detected = 0;
        uint64_t addr = 0;
        size_t reply_len;
-       char reply[GDB_BUFFER_SIZE + 1], cur_sym[GDB_BUFFER_SIZE / 2 + 1] = ""; /* Extra byte for nul-termination */
+       char reply[GDB_BUFFER_SIZE + 1], cur_sym[GDB_BUFFER_SIZE / 2 + 1] = ""; /* Extra byte for null-termination */
        symbol_table_elem_t *next_sym = NULL;
        struct target *target = get_target_from_connection(connection);
        struct rtos *os = target->rtos;