diff options
Diffstat (limited to 'include/asm-sparc/ptrace.h')
-rw-r--r-- | include/asm-sparc/ptrace.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-sparc/ptrace.h b/include/asm-sparc/ptrace.h index c25334234a6f..6b5e6ce5043c 100644 --- a/include/asm-sparc/ptrace.h +++ b/include/asm-sparc/ptrace.h | |||
@@ -39,6 +39,16 @@ struct pt_regs { | |||
39 | #define UREG_FP UREG_I6 | 39 | #define UREG_FP UREG_I6 |
40 | #define UREG_RETPC UREG_I7 | 40 | #define UREG_RETPC UREG_I7 |
41 | 41 | ||
42 | static inline bool pt_regs_is_syscall(struct pt_regs *regs) | ||
43 | { | ||
44 | return (regs->psr & PSR_SYSCALL); | ||
45 | } | ||
46 | |||
47 | static inline bool pt_regs_clear_syscall(struct pt_regs *regs) | ||
48 | { | ||
49 | return (regs->psr &= ~PSR_SYSCALL); | ||
50 | } | ||
51 | |||
42 | /* A register window */ | 52 | /* A register window */ |
43 | struct reg_window { | 53 | struct reg_window { |
44 | unsigned long locals[8]; | 54 | unsigned long locals[8]; |