xref: /openbmc/qemu/bsd-user/x86_64/signal.c (revision f0984d40)
1 /*
2  *  x86_64 signal definitions
3  *
4  *
5  *  This program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2 of the License, or
8  *  (at your option) any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #include "qemu/osdep.h"
20 #include "qemu.h"
21 
22 /*
23  * Compare to amd64/amd64/machdep.c sendsig()
24  * Assumes that target stack frame memory is locked.
25  */
26 abi_long set_sigtramp_args(CPUX86State *regs,
27         int sig, struct target_sigframe *frame, abi_ulong frame_addr,
28         struct target_sigaction *ka)
29 {
30     /* XXX return -TARGET_EOPNOTSUPP; */
31     return 0;
32 }
33 
34 /*
35  * Compare to amd64/amd64/exec_machdep.c sendsig()
36  * Assumes that the memory is locked if frame points to user memory.
37  */
38 abi_long setup_sigframe_arch(CPUX86State *env, abi_ulong frame_addr,
39                              struct target_sigframe *frame, int flags)
40 {
41     target_mcontext_t *mcp = &frame->sf_uc.uc_mcontext;
42 
43     get_mcontext(env, mcp, flags);
44     return 0;
45 }
46 
47 /* Compare to amd64/amd64/machdep.c get_mcontext() */
48 abi_long get_mcontext(CPUX86State *regs,
49                 target_mcontext_t *mcp, int flags)
50 {
51     /* XXX */
52     return -TARGET_EOPNOTSUPP;
53 }
54 
55 /* Compare to amd64/amd64/machdep.c set_mcontext() */
56 abi_long set_mcontext(CPUX86State *regs,
57         target_mcontext_t *mcp, int srflag)
58 {
59     /* XXX */
60     return -TARGET_EOPNOTSUPP;
61 }
62 
63 abi_long get_ucontext_sigreturn(CPUX86State *regs,
64         abi_ulong target_sf, abi_ulong *target_uc)
65 {
66     /* XXX */
67     *target_uc = 0;
68     return -TARGET_EOPNOTSUPP;
69 }
70