xref: /linux/arch/arm64/include/asm/signal32.h (revision 4e95bc268b915c3a19ec8b9110f61e4ea41a1ed0)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (C) 2012 ARM Ltd.
4  */
5 #ifndef __ASM_SIGNAL32_H
6 #define __ASM_SIGNAL32_H
7 
8 #ifdef __KERNEL__
9 #ifdef CONFIG_COMPAT
10 #include <linux/compat.h>
11 
12 int compat_setup_frame(int usig, struct ksignal *ksig, sigset_t *set,
13 		       struct pt_regs *regs);
14 int compat_setup_rt_frame(int usig, struct ksignal *ksig, sigset_t *set,
15 			  struct pt_regs *regs);
16 
17 void compat_setup_restart_syscall(struct pt_regs *regs);
18 #else
19 
20 static inline int compat_setup_frame(int usid, struct ksignal *ksig,
21 				     sigset_t *set, struct pt_regs *regs)
22 {
23 	return -ENOSYS;
24 }
25 
26 static inline int compat_setup_rt_frame(int usig, struct ksignal *ksig, sigset_t *set,
27 					struct pt_regs *regs)
28 {
29 	return -ENOSYS;
30 }
31 
32 static inline void compat_setup_restart_syscall(struct pt_regs *regs)
33 {
34 }
35 #endif /* CONFIG_COMPAT */
36 #endif /* __KERNEL__ */
37 #endif /* __ASM_SIGNAL32_H */
38