aboutsummaryrefslogtreecommitdiff
path: root/src/rtos/ChibiOS.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtos/ChibiOS.c')
-rw-r--r--src/rtos/ChibiOS.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/rtos/ChibiOS.c b/src/rtos/ChibiOS.c
index fbb6ea2..2d88664 100644
--- a/src/rtos/ChibiOS.c
+++ b/src/rtos/ChibiOS.c
@@ -128,15 +128,13 @@ struct rtos_type ChibiOS_rtos = {
enum ChibiOS_symbol_values {
ChibiOS_VAL_rlist = 0,
ChibiOS_VAL_ch = 1,
- ChibiOS_VAL_ch_debug = 2,
- ChibiOS_VAL_chSysInit = 3
+ ChibiOS_VAL_ch_debug = 2
};
static symbol_table_elem_t ChibiOS_symbol_list[] = {
{ "rlist", 0, true}, /* Thread ready list */
{ "ch", 0, true}, /* System data structure */
{ "ch_debug", 0, false}, /* Memory Signature containing offsets of fields in rlist */
- { "chSysInit", 0, false}, /* Necessary part of API, used for ChibiOS detection */
{ NULL, 0, false}
};
@@ -518,12 +516,11 @@ static int ChibiOS_detect_rtos(struct target *target)
{
if ((target->rtos->symbols != NULL) &&
((target->rtos->symbols[ChibiOS_VAL_rlist].address != 0) ||
- (target->rtos->symbols[ChibiOS_VAL_ch].address != 0)) &&
- (target->rtos->symbols[ChibiOS_VAL_chSysInit].address != 0)) {
+ (target->rtos->symbols[ChibiOS_VAL_ch].address != 0))) {
if (target->rtos->symbols[ChibiOS_VAL_ch_debug].address == 0) {
- LOG_INFO("It looks like the target is running ChibiOS without "
- "ch_debug.");
+ LOG_INFO("It looks like the target may be running ChibiOS "
+ "without ch_debug.");
return 0;
}