OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | mqx_params |
struct | mqx_state |
Macros | |
#define | MQX_KERNEL_OFFSET_ACTIVE_TASK (0x001C) |
#define | MQX_KERNEL_OFFSET_CAPABILITY (0x0000) |
#define | MQX_KERNEL_OFFSET_SYSTEM_TASK (0x0050) |
#define | MQX_KERNEL_OFFSET_TDLIST (0x0108) |
#define | MQX_QUEUE_OFFSET_SIZE (0x0008) |
#define | MQX_TASK_OFFSET_ERROR_CODE (0x005C) |
#define | MQX_TASK_OFFSET_ID (0x000c) |
#define | MQX_TASK_OFFSET_NEXT (0x0000) |
#define | MQX_TASK_OFFSET_STACK (0x0014) |
#define | MQX_TASK_OFFSET_STATE (0x0008) |
#define | MQX_TASK_OFFSET_TDLIST (0x006C) |
#define | MQX_TASK_OFFSET_TEMPLATE (0x0068) |
#define | MQX_TASK_STATE_MASK (0xFFF) |
#define | MQX_TASK_TEMPLATE_OFFSET_NAME (0x0010) |
#define | MQX_THREAD_NAME_LENGTH (255) |
Enumerations | |
enum | mqx_arch { mqx_arch_cortexm } |
enum | mqx_symbols { MQX_VAL_MQX_KERNEL_DATA , MQX_VAL_MQX_INIT_STRUCT } |
Functions | |
static int | mqx_create (struct target *target) |
static bool | mqx_detect_rtos (struct target *target) |
static int | mqx_get_member (struct rtos *rtos, const uint32_t base_address, int32_t member_offset, int32_t member_width, const char *member_name, void *result) |
static int | mqx_get_symbol (struct rtos *rtos, enum mqx_symbols symbol, void *result) |
static int | mqx_get_symbol_list_to_lookup (struct symbol_table_elem *symbol_list[]) |
static int | mqx_get_thread_reg_list (struct rtos *rtos, int64_t thread_id, struct rtos_reg **reg_list, int *num_regs) |
static int | mqx_is_scheduler_running (struct rtos *rtos) |
static int | mqx_target_read_buffer (struct target *target, uint32_t address, uint32_t size, uint8_t *buffer) |
static int | mqx_update_threads (struct rtos *rtos) |
static int | mqx_valid_address_check (struct rtos *rtos, uint32_t address) |
Variables | |
static const struct mqx_params | mqx_params_list [] |
struct rtos_type | mqx_rtos |
static const struct mqx_state | mqx_states [] |
static const char *const | mqx_symbol_list [] |
enum mqx_symbols |
|
static |
Definition at line 246 of file mqx.c.
References ARRAY_SIZE, LOG_ERROR, mqx_params_list, target_type::name, target::rtos, rtos::rtos_specific_params, target_name(), and target::type.
|
static |
Definition at line 230 of file mqx.c.
References symbol_table_elem::address, MQX_VAL_MQX_KERNEL_DATA, target::rtos, and rtos::symbols.
|
static |
Definition at line 158 of file mqx.c.
References ERROR_FAIL, ERROR_OK, LOG_WARNING, mqx_target_read_buffer(), status, and rtos::target.
Referenced by mqx_get_thread_reg_list(), mqx_is_scheduler_running(), and mqx_update_threads().
|
static |
Definition at line 143 of file mqx.c.
References symbol_table_elem::address, ERROR_OK, and rtos::symbols.
Referenced by mqx_get_thread_reg_list(), mqx_is_scheduler_running(), and mqx_update_threads().
|
static |
Definition at line 490 of file mqx.c.
References ARRAY_SIZE, ERROR_FAIL, ERROR_OK, and mqx_symbol_list.
|
static |
Definition at line 413 of file mqx.c.
References ERROR_FAIL, ERROR_OK, LOG_ERROR, mqx_get_member(), mqx_get_symbol(), mqx_is_scheduler_running(), MQX_KERNEL_OFFSET_TDLIST, MQX_QUEUE_OFFSET_SIZE, MQX_TASK_OFFSET_ID, MQX_TASK_OFFSET_NEXT, MQX_TASK_OFFSET_STACK, MQX_TASK_OFFSET_TDLIST, MQX_VAL_MQX_KERNEL_DATA, rtos_generic_stack_read(), rtos::rtos_specific_params, rtos::target, and rtos::thread_count.
|
static |
Definition at line 180 of file mqx.c.
References ERROR_FAIL, ERROR_OK, LOG_WARNING, mqx_get_member(), mqx_get_symbol(), MQX_KERNEL_OFFSET_ACTIVE_TASK, MQX_KERNEL_OFFSET_CAPABILITY, MQX_KERNEL_OFFSET_SYSTEM_TASK, and MQX_VAL_MQX_KERNEL_DATA.
Referenced by mqx_get_thread_reg_list(), and mqx_update_threads().
|
static |
Definition at line 120 of file mqx.c.
References buffer, ERROR_OK, LOG_ERROR, LOG_WARNING, mqx_valid_address_check(), target::rtos, size, status, and target_read_buffer().
Referenced by mqx_get_member().
|
static |
Definition at line 265 of file mqx.c.
References ARRAY_SIZE, rtos::current_thread, ERROR_FAIL, ERROR_OK, thread_detail::exists, thread_detail::extra_info_str, mqx_get_member(), mqx_get_symbol(), mqx_is_scheduler_running(), MQX_KERNEL_OFFSET_ACTIVE_TASK, MQX_KERNEL_OFFSET_TDLIST, MQX_QUEUE_OFFSET_SIZE, mqx_states, MQX_TASK_OFFSET_ERROR_CODE, MQX_TASK_OFFSET_ID, MQX_TASK_OFFSET_NEXT, MQX_TASK_OFFSET_STATE, MQX_TASK_OFFSET_TDLIST, MQX_TASK_OFFSET_TEMPLATE, MQX_TASK_STATE_MASK, MQX_TASK_TEMPLATE_OFFSET_NAME, MQX_THREAD_NAME_LENGTH, MQX_VAL_MQX_KERNEL_DATA, mqx_state::name, rtos_free_threadlist(), rtos::rtos_specific_params, state, rtos::symbols, rtos::thread_count, rtos::thread_details, thread_detail::thread_name_str, and thread_detail::threadid.
|
static |
Definition at line 92 of file mqx.c.
References ERROR_FAIL, ERROR_OK, LOG_ERROR, mqx_arch_cortexm, and rtos::rtos_specific_params.
Referenced by mqx_target_read_buffer().
|
static |
Definition at line 79 of file mqx.c.
Referenced by mqx_create().
struct rtos_type mqx_rtos |
|
static |
Definition at line 1 of file mqx.c.
Referenced by mqx_update_threads().