OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | chibios_chdebug |
ChibiOS/RT memory signature record. More... | |
struct | chibios_params |
Macros | |
#define | CH_RLIST_OFFSET 0x00 |
#define | CHIBIOS_NUM_STATES ARRAY_SIZE(chibios_thread_states) |
#define | CHIBIOS_THREAD_NAME_STR_SIZE (64) |
#define | GET_CH_KERNEL_MAJOR(coded_version) ((coded_version >> 11) & 0x1f) |
#define | GET_CH_KERNEL_MINOR(coded_version) ((coded_version >> 6) & 0x1f) |
#define | GET_CH_KERNEL_PATCH(coded_version) ((coded_version >> 0) & 0x3f) |
Enumerations | |
enum | chibios_symbol_values { CHIBIOS_VAL_RLIST = 0 , CHIBIOS_VAL_CH = 1 , CHIBIOS_VAL_CH_DEBUG = 2 } |
Functions | |
static int | chibios_create (struct target *target) |
static bool | chibios_detect_rtos (struct target *target) |
static int | chibios_get_symbol_list_to_lookup (struct symbol_table_elem *symbol_list[]) |
static int | chibios_get_thread_reg_list (struct rtos *rtos, int64_t thread_id, struct rtos_reg **reg_list, int *num_regs) |
static int | chibios_update_memory_signature (struct rtos *rtos) |
static int | chibios_update_stacking (struct rtos *rtos) |
static int | chibios_update_threads (struct rtos *rtos) |
Variables | |
static struct chibios_params | chibios_params_list [] |
const struct rtos_type | chibios_rtos |
static struct symbol_table_elem | chibios_symbol_list [] |
static const char *const | chibios_thread_states [] |
ChibiOS thread states. More... | |
#define CHIBIOS_NUM_STATES ARRAY_SIZE(chibios_thread_states) |
#define GET_CH_KERNEL_MAJOR | ( | coded_version | ) | ((coded_version >> 11) & 0x1f) |
#define GET_CH_KERNEL_MINOR | ( | coded_version | ) | ((coded_version >> 6) & 0x1f) |
#define GET_CH_KERNEL_PATCH | ( | coded_version | ) | ((coded_version >> 0) & 0x3f) |
|
static |
Definition at line 511 of file chibios.c.
References ARRAY_SIZE, chibios_params_list, LOG_WARNING, target::rtos, rtos::rtos_specific_params, target_name(), and target_type_name().
|
static |
Definition at line 492 of file chibios.c.
References symbol_table_elem::address, CHIBIOS_VAL_CH, CHIBIOS_VAL_CH_DEBUG, CHIBIOS_VAL_RLIST, LOG_INFO, target::rtos, and rtos::symbols.
|
static |
Definition at line 481 of file chibios.c.
References chibios_symbol_list, and ERROR_FAIL.
|
static |
Definition at line 447 of file chibios.c.
References chibios_chdebug::cf_off_ctx, chibios_update_stacking(), ERROR_OK, LOG_ERROR, rtos_generic_stack_read(), rtos::rtos_specific_params, chibios_params::signature, chibios_params::stacking_info, rtos::target, target_read_u32(), and target_type_name().
|
static |
Definition at line 131 of file chibios.c.
References symbol_table_elem::address, chibios_chdebug::ch_identifier, chibios_chdebug::ch_ptrsize, chibios_chdebug::ch_size, chibios_chdebug::ch_version, CHIBIOS_VAL_CH_DEBUG, ERROR_OK, GET_CH_KERNEL_MAJOR, GET_CH_KERNEL_MINOR, GET_CH_KERNEL_PATCH, LOG_ERROR, LOG_INFO, LOG_WARNING, NULL, rtos::rtos_specific_params, chibios_params::signature, rtos::symbols, rtos::target, target_buffer_get_u16(), and target_read_buffer().
Referenced by chibios_update_threads().
|
static |
Definition at line 199 of file chibios.c.
References ERROR_OK, FP_NONE, FPU_CPACR, is_armv7m(), LOG_DEBUG, LOG_ERROR, rtos_chibios_arm_v7m_stacking, rtos_chibios_arm_v7m_stacking_w_fpu, rtos::rtos_specific_params, chibios_params::stacking_info, rtos::target, target_read_u32(), and target_to_armv7m().
Referenced by chibios_get_thread_reg_list().
|
static |
Definition at line 256 of file chibios.c.
References symbol_table_elem::address, chibios_chdebug::cf_off_name, chibios_chdebug::cf_off_newer, chibios_chdebug::cf_off_older, chibios_chdebug::cf_off_state, CH_RLIST_OFFSET, CHIBIOS_NUM_STATES, CHIBIOS_THREAD_NAME_STR_SIZE, chibios_thread_states, chibios_update_memory_signature(), CHIBIOS_VAL_CH, CHIBIOS_VAL_RLIST, rtos::current_thread, ERROR_OK, thread_detail::exists, thread_detail::extra_info_str, LOG_ERROR, LOG_INFO, rtos_free_threadlist(), rtos::rtos_specific_params, chibios_params::signature, rtos::symbols, rtos::target, target_read_buffer(), target_read_u32(), target_read_u8(), rtos::thread_count, rtos::thread_details, thread_detail::thread_name_str, and thread_detail::threadid.
|
static |
const struct rtos_type chibios_rtos |
|
static |
Definition at line 97 of file chibios.c.
Referenced by chibios_get_symbol_list_to_lookup().
|
static |
ChibiOS thread states.
Definition at line 60 of file chibios.c.
Referenced by chibios_update_threads().