OpenOCD
|
Go to the source code of this file.
Macros | |
#define | XTENSA_SYSCALL(x) XT_INS_BREAK(x, 1, 14) |
#define | XTENSA_SYSCALL_LEN_MAX 255 |
#define | XTENSA_SYSCALL_SZ 3 |
Functions | |
int | xtensa_fileio_detect_proc (struct target *target) |
Checks for and processes an Xtensa File-IO request. More... | |
int | xtensa_fileio_init (struct target *target) |
int | xtensa_gdb_fileio_end (struct target *target, int retcode, int fileio_errno, bool ctrl_c) |
int | xtensa_get_gdb_fileio_info (struct target *target, struct gdb_fileio_info *fileio_info) |
#define XTENSA_SYSCALL | ( | x | ) | XT_INS_BREAK(x, 1, 14) |
Definition at line 16 of file xtensa_fileio.c.
#define XTENSA_SYSCALL_LEN_MAX 255 |
Definition at line 18 of file xtensa_fileio.c.
#define XTENSA_SYSCALL_SZ 3 |
Definition at line 17 of file xtensa_fileio.c.
int xtensa_fileio_detect_proc | ( | struct target * | target | ) |
Checks for and processes an Xtensa File-IO request.
Return ERROR_OK if request was found and handled; or return ERROR_FAIL if no request was detected.
Definition at line 41 of file xtensa_fileio.c.
References buf_get_u32(), DEBUGCAUSE_BI, DEBUGCAUSE_BN, ERROR_FAIL, ERROR_OK, xtensa::halt_request, LOG_ERROR, LOG_TARGET_DEBUG, xtensa::proc_syscall, target_read_memory(), target_to_xtensa(), XT_REG_IDX_PC, xtensa_cause_get(), xtensa_reg_get(), XTENSA_SYSCALL, and XTENSA_SYSCALL_SZ.
Referenced by xtensa_chip_poll().
int xtensa_fileio_init | ( | struct target * | target | ) |
Definition at line 21 of file xtensa_fileio.c.
References ERROR_FAIL, ERROR_OK, target::fileio_info, gdb_fileio_info::identifier, LOG_TARGET_ERROR, and XTENSA_SYSCALL_LEN_MAX.
Referenced by xtensa_chip_target_init().
int xtensa_gdb_fileio_end | ( | struct target * | target, |
int | retcode, | ||
int | fileio_errno, | ||
bool | ctrl_c | ||
) |
Definition at line 171 of file xtensa_fileio.c.
References ERROR_FAIL, ERROR_OK, xtensa::halt_request, LOG_TARGET_DEBUG, xtensa::proc_syscall, target_to_xtensa(), XT_REG_IDX_PC, xtensa_reg_get(), xtensa_reg_set(), xtensa_reg_set_deep_relgen(), XTENSA_SYSCALL_ERRNO_REG, XTENSA_SYSCALL_RETVAL_REG, and XTENSA_SYSCALL_SZ.
int xtensa_get_gdb_fileio_info | ( | struct target * | target, |
struct gdb_fileio_info * | fileio_info | ||
) |
Definition at line 69 of file xtensa_fileio.c.
References ERROR_FAIL, ERROR_OK, gdb_fileio_info::identifier, LOG_ERROR, LOG_INFO, LOG_TARGET_DEBUG, gdb_fileio_info::param_1, gdb_fileio_info::param_2, gdb_fileio_info::param_3, gdb_fileio_info::param_4, xtensa::proc_syscall, target_to_xtensa(), XT_REG_IDX_A3, XT_REG_IDX_A4, XT_REG_IDX_A5, XT_REG_IDX_A6, XT_REG_IDX_PC, xtensa_reg_get(), XTENSA_SYSCALL_CLOSE, XTENSA_SYSCALL_FSTAT, XTENSA_SYSCALL_GETTIMEOFDAY, XTENSA_SYSCALL_ISATTY, XTENSA_SYSCALL_LEN_MAX, XTENSA_SYSCALL_LSEEK, XTENSA_SYSCALL_OP_REG, XTENSA_SYSCALL_OPEN, XTENSA_SYSCALL_READ, XTENSA_SYSCALL_RENAME, XTENSA_SYSCALL_STAT, XTENSA_SYSCALL_SYSTEM, XTENSA_SYSCALL_UNLINK, and XTENSA_SYSCALL_WRITE.