Go to the documentation of this file.
10 #ifndef _XTENSA_PTRACE_H
11 #define _XTENSA_PTRACE_H
13 #include <uapi/asm/ptrace.h>
54 #include <variant/core.h>
56 # define arch_has_single_step() (1)
57 # define task_pt_regs(tsk) ((struct pt_regs*) \
58 (task_stack_page(tsk) + KERNEL_STACK_SIZE - (XCHAL_NUM_AREGS-16)*4) - 1)
59 # define user_mode(regs) (((regs)->ps & 0x00000020)!=0)
60 # define instruction_pointer(regs) ((regs)->pc)
63 # define profile_pc(regs) instruction_pointer(regs)
68 # include <asm/asm-offsets.h>
69 #define PT_REGS_OFFSET (KERNEL_STACK_SIZE - PT_USER_SIZE)