Merge tag 'v9.0.0-rc3'
[qemu/ar7.git] / bsd-user / i386 / signal.c
bloba3131047b8d044443abdc580160a41f6724a339a
1 /*
2 * i386 dependent signal definitions
4 * Copyright (c) 2013 Stacey D. Son
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.
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.
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/>.
20 #include "qemu/osdep.h"
21 #include "qemu.h"
24 * Compare to i386/i386/machdep.c sendsig()
25 * Assumes that target stack frame memory is locked.
27 abi_long set_sigtramp_args(CPUX86State *env, int sig,
28 struct target_sigframe *frame,
29 abi_ulong frame_addr,
30 struct target_sigaction *ka)
32 /* XXX return -TARGET_EOPNOTSUPP; */
33 return 0;
37 * Compare to i386/i386/exec_machdep.c sendsig()
38 * Assumes that the memory is locked if frame points to user memory.
40 abi_long setup_sigframe_arch(CPUX86State *env, abi_ulong frame_addr,
41 struct target_sigframe *frame, int flags)
43 target_mcontext_t *mcp = &frame->sf_uc.uc_mcontext;
45 get_mcontext(env, mcp, flags);
46 return 0;
49 /* Compare to i386/i386/machdep.c get_mcontext() */
50 abi_long get_mcontext(CPUX86State *regs, target_mcontext_t *mcp, int flags)
52 /* XXX */
53 return -TARGET_EOPNOTSUPP;
56 /* Compare to i386/i386/machdep.c set_mcontext() */
57 abi_long set_mcontext(CPUX86State *regs, target_mcontext_t *mcp, int srflag)
59 /* XXX */
60 return -TARGET_EOPNOTSUPP;
63 abi_long get_ucontext_sigreturn(CPUX86State *regs, abi_ulong target_sf,
64 abi_ulong *target_uc)
66 /* XXX */
67 *target_uc = 0;
68 return -TARGET_EOPNOTSUPP;