1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16#ifndef __ASM_SIGNAL32_H
17#define __ASM_SIGNAL32_H
18
19#ifdef __KERNEL__
20#ifdef CONFIG_COMPAT
21#include <linux/compat.h>
22
23#define AARCH32_KERN_SIGRET_CODE_OFFSET 0x500
24
25extern const compat_ulong_t aarch32_sigret_code[6];
26
27int compat_setup_frame(int usig, struct ksignal *ksig, sigset_t *set,
28 struct pt_regs *regs);
29int compat_setup_rt_frame(int usig, struct ksignal *ksig, sigset_t *set,
30 struct pt_regs *regs);
31
32void compat_setup_restart_syscall(struct pt_regs *regs);
33#else
34
35static inline int compat_setup_frame(int usid, struct ksignal *ksig,
36 sigset_t *set, struct pt_regs *regs)
37{
38 return -ENOSYS;
39}
40
41static inline int compat_setup_rt_frame(int usig, struct ksignal *ksig, sigset_t *set,
42 struct pt_regs *regs)
43{
44 return -ENOSYS;
45}
46
47static inline void compat_setup_restart_syscall(struct pt_regs *regs)
48{
49}
50#endif
51#endif
52#endif
53