OpenOCD
xtensa_fileio.h File Reference
Include dependency graph for xtensa_fileio.h:
This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

◆ XTENSA_SYSCALL_CLOSE

#define XTENSA_SYSCALL_CLOSE   (-3)

Definition at line 20 of file xtensa_fileio.h.

◆ XTENSA_SYSCALL_ERRNO_REG

#define XTENSA_SYSCALL_ERRNO_REG   XT_REG_IDX_A3

Definition at line 17 of file xtensa_fileio.h.

◆ XTENSA_SYSCALL_FSTAT

#define XTENSA_SYSCALL_FSTAT   (-10)

Definition at line 27 of file xtensa_fileio.h.

◆ XTENSA_SYSCALL_GETTIMEOFDAY

#define XTENSA_SYSCALL_GETTIMEOFDAY   (-11)

Definition at line 28 of file xtensa_fileio.h.

◆ XTENSA_SYSCALL_ISATTY

#define XTENSA_SYSCALL_ISATTY   (-12)

Definition at line 29 of file xtensa_fileio.h.

◆ XTENSA_SYSCALL_LSEEK

#define XTENSA_SYSCALL_LSEEK   (-6)

Definition at line 23 of file xtensa_fileio.h.

◆ XTENSA_SYSCALL_OP_REG

#define XTENSA_SYSCALL_OP_REG   XT_REG_IDX_A2

Definition at line 15 of file xtensa_fileio.h.

◆ XTENSA_SYSCALL_OPEN

#define XTENSA_SYSCALL_OPEN   (-2)

Definition at line 19 of file xtensa_fileio.h.

◆ XTENSA_SYSCALL_READ

#define XTENSA_SYSCALL_READ   (-4)

Definition at line 21 of file xtensa_fileio.h.

◆ XTENSA_SYSCALL_RENAME

#define XTENSA_SYSCALL_RENAME   (-7)

Definition at line 24 of file xtensa_fileio.h.

◆ XTENSA_SYSCALL_RETVAL_REG

#define XTENSA_SYSCALL_RETVAL_REG   XT_REG_IDX_A2

Definition at line 16 of file xtensa_fileio.h.

◆ XTENSA_SYSCALL_STAT

#define XTENSA_SYSCALL_STAT   (-9)

Definition at line 26 of file xtensa_fileio.h.

◆ XTENSA_SYSCALL_SYSTEM

#define XTENSA_SYSCALL_SYSTEM   (-13)

Definition at line 30 of file xtensa_fileio.h.

◆ XTENSA_SYSCALL_UNLINK

#define XTENSA_SYSCALL_UNLINK   (-8)

Definition at line 25 of file xtensa_fileio.h.

◆ XTENSA_SYSCALL_WRITE

#define XTENSA_SYSCALL_WRITE   (-5)

Definition at line 22 of file xtensa_fileio.h.

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