arm7_9_debug_entry() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

arm7_9_debug_entry() function

Handle an ARM7/9 target's entry into debug mode. The halt is cleared on the ARM. The JTAG queue is then executed and the reason for debug entry is examined. Once done, the target is verified to be halted and the processor is forced into ARM mode. The core registers are saved for the current core mode and the program counter (register 15) is updated as needed. The core registers and CPSR and SPSR are saved for restoration later.

Syntax

static int arm7_9_debug_entry(struct target *target);
Implemented in arm7_9_common.c:1225

Arguments

target

Pointer to target that is entering debug mode

Return value

Error code if anything fails, otherwise ERROR_OK

References

LocationReferrerText
arm7_9_common.c:1225
static int arm7_9_debug_entry(struct target *target)
arm7_9_common.c:52
static int arm7_9_debug_entry(struct target *target);
arm7_9_common.c:818arm7_9_poll()
retval = arm7_9_debug_entry(target);
arm7_9_common.c:831arm7_9_poll()
retval = arm7_9_debug_entry(target);
arm7_9_common.c:1786arm7_9_resume()
retval = arm7_9_debug_entry(target);
arm7_9_common.c:1972arm7_9_step()
retval = arm7_9_debug_entry(target);

Call Tree

Data read by arm7_9_debug_entry()
Data written by arm7_9_debug_entry()
arm7_9_debug_entry()::i
arm7_9_debug_entry()::context
arm7_9_debug_entry()::context_p
arm7_9_debug_entry()::r0_thumb
arm7_9_debug_entry()::pc_thumb
arm7_9_debug_entry()::cpsr
arm7_9_debug_entry()::cpsr_mask
arm7_9_debug_entry()::retval
arm7_9_debug_entry()::arm7_9
arm7_9_debug_entry()::arm
arm7_9_debug_entry()::dbg_stat
arm7_9_debug_entry()::dbg_ctrl
arm7_9_debug_entry()::r
arm7_9_debug_entry()::spsr
all items filtered out
arm7_9_debug_entry()
arm7_9_debug_entry()::i
arm7_9_debug_entry()::cpsr_mask
arm7_9_debug_entry()::retval
all items filtered out
Type of arm7_9_debug_entry()
arm7_9_debug_entry()
uint32_t
all items filtered out