1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18#ifndef _TARGET_ARCH_SIGNAL_H_
19#define _TARGET_ARCH_SIGNAL_H_
20
21#include "cpu.h"
22
23
24#define TARGET_SZSIGCODE 0
25
26
27#define TARGET_MINSIGSTKSZ (512 * 4)
28#define TARGET_SIGSTKSZ (MINSIGSTKSZ + 32768)
29
30struct target_sigcontext {
31
32};
33
34typedef struct target_mcontext {
35} target_mcontext_t;
36
37typedef struct target_ucontext {
38 target_sigset_t uc_sigmask;
39 target_mcontext_t uc_mcontext;
40 abi_ulong uc_link;
41 target_stack_t uc_stack;
42 int32_t uc_flags;
43 int32_t __spare__[4];
44} target_ucontext_t;
45
46struct target_sigframe {
47 abi_ulong sf_signum;
48 abi_ulong sf_siginfo;
49 abi_ulong sf_ucontext;
50 abi_ulong sf_addr;
51 target_ucontext_t sf_uc;
52 target_siginfo_t sf_si;
53 uint32_t __spare__[2];
54};
55
56
57
58
59
60static inline abi_long set_sigtramp_args(CPUX86State *regs,
61 int sig, struct target_sigframe *frame, abi_ulong frame_addr,
62 struct target_sigaction *ka)
63{
64
65 return 0;
66}
67
68
69static inline abi_long get_mcontext(CPUX86State *regs,
70 target_mcontext_t *mcp, int flags)
71{
72
73 return -TARGET_EOPNOTSUPP;
74}
75
76
77static inline abi_long set_mcontext(CPUX86State *regs,
78 target_mcontext_t *mcp, int srflag)
79{
80
81 return -TARGET_EOPNOTSUPP;
82}
83
84static inline abi_long get_ucontext_sigreturn(CPUX86State *regs,
85 abi_ulong target_sf, abi_ulong *target_uc)
86{
87
88 *target_uc = 0;
89 return -TARGET_EOPNOTSUPP;
90}
91
92#endif
93