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 [] |
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 518 of file chibios.c.
References ARRAY_SIZE, chibios_params_list, LOG_WARNING, target_type::name, target::rtos, rtos::rtos_specific_params, target_name(), and target::type.
|
static |
Definition at line 499 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 488 of file chibios.c.
References chibios_symbol_list, and ERROR_FAIL.
|
static |
Definition at line 454 of file chibios.c.
References chibios_update_stacking(), ERROR_OK, LOG_ERROR, target_type::name, param, rtos_generic_stack_read(), rtos::rtos_specific_params, rtos::target, target_read_u32(), and target::type.
|
static |
Definition at line 132 of file chibios.c.
References symbol_table_elem::address, be_to_h_u32(), chibios_chdebug::ch_identifier, chibios_chdebug::ch_ptrsize, chibios_chdebug::ch_size, chibios_chdebug::ch_version, CHIBIOS_VAL_CH_DEBUG, target::endianness, ERROR_OK, GET_CH_KERNEL_MAJOR, GET_CH_KERNEL_MINOR, GET_CH_KERNEL_PATCH, le_to_h_u32(), LOG_ERROR, LOG_INFO, LOG_WARNING, NULL, param, rtos::rtos_specific_params, chibios_params::signature, rtos::symbols, rtos::target, TARGET_LITTLE_ENDIAN, and target_read_buffer().
Referenced by chibios_update_threads().
|
static |
Definition at line 206 of file chibios.c.
References ERROR_OK, FP_NONE, FPU_CPACR, is_armv7m(), LOG_DEBUG, LOG_ERROR, param, rtos_chibios_arm_v7m_stacking, rtos_chibios_arm_v7m_stacking_w_fpu, rtos::rtos_specific_params, rtos::target, target_read_u32(), and target_to_armv7m().
Referenced by chibios_get_thread_reg_list().
|
static |
Definition at line 263 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, param, rtos_free_threadlist(), rtos::rtos_specific_params, 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 |
struct rtos_type chibios_rtos |
|
static |
Definition at line 98 of file chibios.c.
Referenced by chibios_get_symbol_list_to_lookup().
|
static |
ChibiOS thread states.
Definition at line 61 of file chibios.c.
Referenced by chibios_update_threads().