forked from auracaster/openocd
rtos: rework rtos_create()
To simplify the caller of rtos_create(), convert the code from jimtcl oriented to OpenOCD commands. While there, fix inconsistencies in almost every rtos create() method and reset rtos_auto_detect to better cooperate on run-time rtos configuration. Change-Id: I59c443aaed77a48174facdfc86db75d6b28c8480 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8830 Tested-by: jenkins
This commit is contained in:
@@ -129,13 +129,13 @@ static int nuttx_create(struct target *target)
|
||||
|
||||
if (i >= ARRAY_SIZE(nuttx_params_list)) {
|
||||
LOG_ERROR("Could not find \"%s\" target in NuttX compatibility list", target_type_name(target));
|
||||
return JIM_ERR;
|
||||
return ERROR_FAIL;
|
||||
}
|
||||
|
||||
/* We found a target in our list, copy its reference. */
|
||||
target->rtos->rtos_specific_params = (void *)param;
|
||||
|
||||
return JIM_OK;
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int nuttx_smp_init(struct target *target)
|
||||
|
||||
Reference in New Issue
Block a user