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

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)
 

Macro Definition Documentation

◆ XTENSA_SYSCALL

#define XTENSA_SYSCALL (   x)    XT_INS_BREAK(x, 1, 14)

Definition at line 16 of file xtensa_fileio.c.

◆ XTENSA_SYSCALL_LEN_MAX

#define XTENSA_SYSCALL_LEN_MAX   255

Definition at line 18 of file xtensa_fileio.c.

◆ XTENSA_SYSCALL_SZ

#define XTENSA_SYSCALL_SZ   3

Definition at line 17 of file xtensa_fileio.c.

Function Documentation

◆ xtensa_fileio_detect_proc()

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().

◆ xtensa_fileio_init()

int xtensa_fileio_init ( struct target target)

◆ xtensa_gdb_fileio_end()

int xtensa_gdb_fileio_end ( struct target target,
int  retcode,
int  fileio_errno,
bool  ctrl_c 
)

◆ xtensa_get_gdb_fileio_info()