Go to the documentation of this file.
18 #ifndef __ASM_OPENRISC_PTRACE_H
19 #define __ASM_OPENRISC_PTRACE_H
23 #include <uapi/asm/ptrace.h>
71 #define STACK_FRAME_OVERHEAD 128
73 #define instruction_pointer(regs) ((regs)->pc)
74 #define user_mode(regs) (((regs)->sr & SPR_SR_SM) == 0)
75 #define user_stack_pointer(regs) ((unsigned long)(regs)->sp)
76 #define profile_pc(regs) instruction_pointer(regs)
78 static inline long regs_return_value(
struct pt_regs *
regs)
121 #define PT_ORIG_GPR11 132
122 #define PT_SYSCALLNO 136