diff options
Diffstat (limited to 'include/asm-sparc')
-rw-r--r-- | include/asm-sparc/psr.h | 1 | ||||
-rw-r--r-- | include/asm-sparc/ptrace.h | 10 | ||||
-rw-r--r-- | include/asm-sparc/signal.h | 8 |
3 files changed, 12 insertions, 7 deletions
diff --git a/include/asm-sparc/psr.h b/include/asm-sparc/psr.h index 19c978051118..213970477a24 100644 --- a/include/asm-sparc/psr.h +++ b/include/asm-sparc/psr.h | |||
@@ -25,6 +25,7 @@ | |||
25 | #define PSR_PIL 0x00000f00 /* processor interrupt level */ | 25 | #define PSR_PIL 0x00000f00 /* processor interrupt level */ |
26 | #define PSR_EF 0x00001000 /* enable floating point */ | 26 | #define PSR_EF 0x00001000 /* enable floating point */ |
27 | #define PSR_EC 0x00002000 /* enable co-processor */ | 27 | #define PSR_EC 0x00002000 /* enable co-processor */ |
28 | #define PSR_SYSCALL 0x00004000 /* inside of a syscall */ | ||
28 | #define PSR_LE 0x00008000 /* SuperSparcII little-endian */ | 29 | #define PSR_LE 0x00008000 /* SuperSparcII little-endian */ |
29 | #define PSR_ICC 0x00f00000 /* integer condition codes */ | 30 | #define PSR_ICC 0x00f00000 /* integer condition codes */ |
30 | #define PSR_C 0x00100000 /* carry bit */ | 31 | #define PSR_C 0x00100000 /* carry bit */ |
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]; |
diff --git a/include/asm-sparc/signal.h b/include/asm-sparc/signal.h index d03a21c97abb..94071c75701f 100644 --- a/include/asm-sparc/signal.h +++ b/include/asm-sparc/signal.h | |||
@@ -199,13 +199,7 @@ typedef struct sigaltstack { | |||
199 | size_t ss_size; | 199 | size_t ss_size; |
200 | } stack_t; | 200 | } stack_t; |
201 | 201 | ||
202 | struct sparc_deliver_cookie { | 202 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) |
203 | int restart_syscall; | ||
204 | unsigned long orig_i0; | ||
205 | }; | ||
206 | |||
207 | struct pt_regs; | ||
208 | extern void ptrace_signal_deliver(struct pt_regs *regs, void *cookie); | ||
209 | 203 | ||
210 | #endif /* !(__KERNEL__) */ | 204 | #endif /* !(__KERNEL__) */ |
211 | 205 | ||