xref: /openbmc/qemu/bsd-user/x86_64/signal.c (revision 91654e61)
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.h"
20 
21 /*
22  * Compare to amd64/amd64/machdep.c sendsig()
23  * Assumes that target stack frame memory is locked.
24  */
25 abi_long set_sigtramp_args(CPUX86State *regs,
26         int sig, struct target_sigframe *frame, abi_ulong frame_addr,
27         struct target_sigaction *ka)
28 {
29     /* XXX return -TARGET_EOPNOTSUPP; */
30     return 0;
31 }
32 
33 /* Compare to amd64/amd64/machdep.c get_mcontext() */
34 abi_long get_mcontext(CPUX86State *regs,
35                 target_mcontext_t *mcp, int flags)
36 {
37     /* XXX */
38     return -TARGET_EOPNOTSUPP;
39 }
40 
41 /* Compare to amd64/amd64/machdep.c set_mcontext() */
42 abi_long set_mcontext(CPUX86State *regs,
43         target_mcontext_t *mcp, int srflag)
44 {
45     /* XXX */
46     return -TARGET_EOPNOTSUPP;
47 }
48 
49 abi_long get_ucontext_sigreturn(CPUX86State *regs,
50         abi_ulong target_sf, abi_ulong *target_uc)
51 {
52     /* XXX */
53     *target_uc = 0;
54     return -TARGET_EOPNOTSUPP;
55 }
56