hw/intc/arm_gicv3_its: Split error checks
[qemu.git] / bsd-user / x86_64 / signal.c
blobc3875bc4c6a7ee8a19fd2675eb00bee1bede9dd0
1 /*
2 * x86_64 signal definitions
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.
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.
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/>.
19 #include "qemu.h"
22 * Compare to amd64/amd64/machdep.c sendsig()
23 * Assumes that target stack frame memory is locked.
25 abi_long set_sigtramp_args(CPUX86State *regs,
26 int sig, struct target_sigframe *frame, abi_ulong frame_addr,
27 struct target_sigaction *ka)
29 /* XXX return -TARGET_EOPNOTSUPP; */
30 return 0;
34 * Compare to amd64/amd64/exec_machdep.c sendsig()
35 * Assumes that the memory is locked if frame points to user memory.
37 abi_long setup_sigframe_arch(CPUX86State *env, abi_ulong frame_addr,
38 struct target_sigframe *frame, int flags)
40 target_mcontext_t *mcp = &frame->sf_uc.uc_mcontext;
42 get_mcontext(env, mcp, flags);
43 return 0;
46 /* Compare to amd64/amd64/machdep.c get_mcontext() */
47 abi_long get_mcontext(CPUX86State *regs,
48 target_mcontext_t *mcp, int flags)
50 /* XXX */
51 return -TARGET_EOPNOTSUPP;
54 /* Compare to amd64/amd64/machdep.c set_mcontext() */
55 abi_long set_mcontext(CPUX86State *regs,
56 target_mcontext_t *mcp, int srflag)
58 /* XXX */
59 return -TARGET_EOPNOTSUPP;
62 abi_long get_ucontext_sigreturn(CPUX86State *regs,
63 abi_ulong target_sf, abi_ulong *target_uc)
65 /* XXX */
66 *target_uc = 0;
67 return -TARGET_EOPNOTSUPP;