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

arm_semihosting() function

Checks for and processes an ARM semihosting request. This is meant to be called when the target is stopped due to a debug mode entry. If the value 0 is returned then there was nothing to process. A non-zero return value signifies that a request was processed and the target resumed, or an error was encountered, in which case the caller must return immediately.

Syntax

int arm_semihosting(struct target *target,     int *retval);
Implemented in arm_semihosting.c:172

Arguments

target

Pointer to the ARM target to process. This target must not represent an ARMv6-M or ARMv7-M processor.

retval

Pointer to a location where the return code will be stored

Return value

non-zero value if a request was processed or an error encountered

References

LocationReferrerText
arm_semihosting.c:172
int arm_semihosting(struct target *target, int *retval)
arm_semihosting.h:14
int arm_semihosting(struct target *target, int *retval);
aarch64.c:545aarch64_poll()
if (arm_semihosting(target, &retval) != 0)
arm7_9_common.c:822arm7_9_poll()
if (arm_semihosting(target, &retval) != 0)
cortex_a.c:780cortex_a_poll()
if (arm_semihosting(target, &retval) != 0)
cortex_m.c:1040cortex_m_poll_one()
if (retval == ERROR_OK && arm_semihosting(target, &retval) != 0)
hla_target.c:317adapter_poll()
if (arm_semihosting(target, &retval) != 0)

Call Tree

Data read by arm_semihosting()
Data written by arm_semihosting()
arm_semihosting()
arm_semihosting()::insn
arm_semihosting()::pc
arm_semihosting()::lr
arm_semihosting()::spsr
arm_semihosting()::r
all items filtered out
Type of arm_semihosting()
arm_semihosting()
uint8_t
uint16_t
uint32_t
uint64_t
all items filtered out