OpenOCD
rtos_nuttx_stackings.c File Reference
Include dependency graph for rtos_nuttx_stackings.c:

Go to the source code of this file.

Functions

static int nuttx_cortex_m_tcbinfo_stack_read (struct target *target, int64_t stack_ptr, const struct rtos_register_stacking *stacking, uint8_t *stack_data)
 
static int nuttx_esp_xtensa_stack_read (struct target *target, int64_t stack_ptr, const struct rtos_register_stacking *stacking, uint8_t *stack_data)
 

Variables

const struct rtos_register_stacking nuttx_esp32_stacking
 
const struct rtos_register_stacking nuttx_esp32s2_stacking
 
const struct rtos_register_stacking nuttx_esp32s3_stacking
 
const struct rtos_register_stacking nuttx_riscv_stacking
 
static const struct stack_register_offset nuttx_stack_offsets_cortex_m []
 
static const struct stack_register_offset nuttx_stack_offsets_esp32 []
 
static const struct stack_register_offset nuttx_stack_offsets_esp32s2 []
 
static const struct stack_register_offset nuttx_stack_offsets_esp32s3 []
 
static const struct stack_register_offset nuttx_stack_offsets_riscv []
 
const struct rtos_register_stacking nuttx_stacking_cortex_m
 

Function Documentation

◆ nuttx_cortex_m_tcbinfo_stack_read()

◆ nuttx_esp_xtensa_stack_read()

static int nuttx_esp_xtensa_stack_read ( struct target target,
int64_t  stack_ptr,
const struct rtos_register_stacking stacking,
uint8_t *  stack_data 
)
static

Definition at line 152 of file rtos_nuttx_stackings.c.

Variable Documentation

◆ nuttx_esp32_stacking

const struct rtos_register_stacking nuttx_esp32_stacking
Initial value:
= {
.stack_registers_size = 26 * 4,
.stack_growth_direction = -1,
.num_output_registers = ARRAY_SIZE(nuttx_stack_offsets_esp32),
.calculate_process_stack = rtos_generic_stack_align8,
.register_offsets = nuttx_stack_offsets_esp32,
}
static const struct stack_register_offset nuttx_stack_offsets_esp32[]
static int nuttx_esp_xtensa_stack_read(struct target *target, int64_t stack_ptr, const struct rtos_register_stacking *stacking, uint8_t *stack_data)
target_addr_t rtos_generic_stack_align8(struct target *target, const uint8_t *stack_data, const struct rtos_register_stacking *stacking, target_addr_t stack_ptr)
#define ARRAY_SIZE(x)
Compute the number of elements of a variable length array.
Definition: types.h:57

Definition at line 152 of file rtos_nuttx_stackings.c.

◆ nuttx_esp32s2_stacking

const struct rtos_register_stacking nuttx_esp32s2_stacking
Initial value:
= {
.stack_registers_size = 25 * 4,
.stack_growth_direction = -1,
.num_output_registers = ARRAY_SIZE(nuttx_stack_offsets_esp32s2),
.calculate_process_stack = rtos_generic_stack_align8,
.register_offsets = nuttx_stack_offsets_esp32s2,
}
static const struct stack_register_offset nuttx_stack_offsets_esp32s2[]

Definition at line 152 of file rtos_nuttx_stackings.c.

◆ nuttx_esp32s3_stacking

const struct rtos_register_stacking nuttx_esp32s3_stacking
Initial value:
= {
.stack_registers_size = 26 * 4,
.stack_growth_direction = -1,
.num_output_registers = ARRAY_SIZE(nuttx_stack_offsets_esp32s3),
.calculate_process_stack = rtos_generic_stack_align8,
.register_offsets = nuttx_stack_offsets_esp32s3,
}
static const struct stack_register_offset nuttx_stack_offsets_esp32s3[]

Definition at line 152 of file rtos_nuttx_stackings.c.

◆ nuttx_riscv_stacking

const struct rtos_register_stacking nuttx_riscv_stacking
Initial value:
= {
.stack_registers_size = 33 * 4,
.stack_growth_direction = -1,
.num_output_registers = 33,
.calculate_process_stack = rtos_generic_stack_align8,
.register_offsets = nuttx_stack_offsets_riscv,
}
static const struct stack_register_offset nuttx_stack_offsets_riscv[]

Definition at line 53 of file rtos_nuttx_stackings.c.

◆ nuttx_stack_offsets_cortex_m

const struct stack_register_offset nuttx_stack_offsets_cortex_m[]
static
Initial value:
= {
{ ARMV7M_R0, 0, 32 },
{ ARMV7M_R1, 4, 32 },
{ ARMV7M_R2, 8, 32 },
{ ARMV7M_R3, 12, 32 },
{ ARMV7M_R4, 16, 32 },
{ ARMV7M_R5, 20, 32 },
{ ARMV7M_R6, 24, 32 },
{ ARMV7M_R7, 28, 32 },
{ ARMV7M_R8, 32, 32 },
{ ARMV7M_R9, 36, 32 },
{ ARMV7M_R10, 40, 32 },
{ ARMV7M_R11, 44, 32 },
{ ARMV7M_R12, 48, 32 },
{ ARMV7M_R13, 52, 32 },
{ ARMV7M_R14, 56, 32 },
{ ARMV7M_PC, 60, 32 },
{ ARMV7M_XPSR, 64, 32 },
}
@ ARMV7M_R1
Definition: armv7m.h:108
@ ARMV7M_R6
Definition: armv7m.h:114
@ ARMV7M_R2
Definition: armv7m.h:109
@ ARMV7M_R3
Definition: armv7m.h:110
@ ARMV7M_R14
Definition: armv7m.h:124
@ ARMV7M_R9
Definition: armv7m.h:118
@ ARMV7M_R12
Definition: armv7m.h:122
@ ARMV7M_R0
Definition: armv7m.h:107
@ ARMV7M_R13
Definition: armv7m.h:123
@ ARMV7M_PC
Definition: armv7m.h:125
@ ARMV7M_R7
Definition: armv7m.h:115
@ ARMV7M_R4
Definition: armv7m.h:112
@ ARMV7M_XPSR
Definition: armv7m.h:127
@ ARMV7M_R8
Definition: armv7m.h:117
@ ARMV7M_R11
Definition: armv7m.h:120
@ ARMV7M_R10
Definition: armv7m.h:119
@ ARMV7M_R5
Definition: armv7m.h:113

Definition at line 1 of file rtos_nuttx_stackings.c.

◆ nuttx_stack_offsets_esp32

const struct stack_register_offset nuttx_stack_offsets_esp32[]
static

Definition at line 152 of file rtos_nuttx_stackings.c.

◆ nuttx_stack_offsets_esp32s2

const struct stack_register_offset nuttx_stack_offsets_esp32s2[]
static

Definition at line 152 of file rtos_nuttx_stackings.c.

◆ nuttx_stack_offsets_esp32s3

const struct stack_register_offset nuttx_stack_offsets_esp32s3[]
static

Definition at line 152 of file rtos_nuttx_stackings.c.

◆ nuttx_stack_offsets_riscv

const struct stack_register_offset nuttx_stack_offsets_riscv[]
static

Definition at line 53 of file rtos_nuttx_stackings.c.

◆ nuttx_stacking_cortex_m

const struct rtos_register_stacking nuttx_stacking_cortex_m
Initial value:
= {
.stack_registers_size = ARRAY_SIZE(nuttx_stack_offsets_cortex_m) * 4,
.stack_growth_direction = -1,
.num_output_registers = ARRAY_SIZE(nuttx_stack_offsets_cortex_m),
.calculate_process_stack = NULL,
.register_offsets = nuttx_stack_offsets_cortex_m,
}
static const struct stack_register_offset nuttx_stack_offsets_cortex_m[]
static int nuttx_cortex_m_tcbinfo_stack_read(struct target *target, int64_t stack_ptr, const struct rtos_register_stacking *stacking, uint8_t *stack_data)
#define NULL
Definition: usb.h:16

Definition at line 53 of file rtos_nuttx_stackings.c.