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