OpenOCD
|
Go to the source code of this file.
Macros | |
#define | XTENSA_SYSCALL_CLOSE (-3) |
#define | XTENSA_SYSCALL_ERRNO_REG XT_REG_IDX_A3 |
#define | XTENSA_SYSCALL_FSTAT (-10) |
#define | XTENSA_SYSCALL_GETTIMEOFDAY (-11) |
#define | XTENSA_SYSCALL_ISATTY (-12) |
#define | XTENSA_SYSCALL_LSEEK (-6) |
#define | XTENSA_SYSCALL_OP_REG XT_REG_IDX_A2 |
#define | XTENSA_SYSCALL_OPEN (-2) |
#define | XTENSA_SYSCALL_READ (-4) |
#define | XTENSA_SYSCALL_RENAME (-7) |
#define | XTENSA_SYSCALL_RETVAL_REG XT_REG_IDX_A2 |
#define | XTENSA_SYSCALL_STAT (-9) |
#define | XTENSA_SYSCALL_SYSTEM (-13) |
#define | XTENSA_SYSCALL_UNLINK (-8) |
#define | XTENSA_SYSCALL_WRITE (-5) |
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_CLOSE (-3) |
Definition at line 20 of file xtensa_fileio.h.
#define XTENSA_SYSCALL_ERRNO_REG XT_REG_IDX_A3 |
Definition at line 17 of file xtensa_fileio.h.
#define XTENSA_SYSCALL_FSTAT (-10) |
Definition at line 27 of file xtensa_fileio.h.
#define XTENSA_SYSCALL_GETTIMEOFDAY (-11) |
Definition at line 28 of file xtensa_fileio.h.
#define XTENSA_SYSCALL_ISATTY (-12) |
Definition at line 29 of file xtensa_fileio.h.
#define XTENSA_SYSCALL_LSEEK (-6) |
Definition at line 23 of file xtensa_fileio.h.
#define XTENSA_SYSCALL_OP_REG XT_REG_IDX_A2 |
Definition at line 15 of file xtensa_fileio.h.
#define XTENSA_SYSCALL_OPEN (-2) |
Definition at line 19 of file xtensa_fileio.h.
#define XTENSA_SYSCALL_READ (-4) |
Definition at line 21 of file xtensa_fileio.h.
#define XTENSA_SYSCALL_RENAME (-7) |
Definition at line 24 of file xtensa_fileio.h.
#define XTENSA_SYSCALL_RETVAL_REG XT_REG_IDX_A2 |
Definition at line 16 of file xtensa_fileio.h.
#define XTENSA_SYSCALL_STAT (-9) |
Definition at line 26 of file xtensa_fileio.h.
#define XTENSA_SYSCALL_SYSTEM (-13) |
Definition at line 30 of file xtensa_fileio.h.
#define XTENSA_SYSCALL_UNLINK (-8) |
Definition at line 25 of file xtensa_fileio.h.
#define XTENSA_SYSCALL_WRITE (-5) |
Definition at line 22 of file xtensa_fileio.h.
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.