master
c 59 lines 1.39 KB
Raw
1 /*
2 * x86_64 signal definitions
3 *
4 * Copyright (c) 2013 Stacey D. Son
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9 #include "qemu/osdep.h"
10 #include "qemu.h"
11
12 /*
13 * Compare to amd64/amd64/machdep.c sendsig()
14 * Assumes that target stack frame memory is locked.
15 */
16 abi_long set_sigtramp_args(CPUX86State *regs,
17 int sig, struct target_sigframe *frame, abi_ulong frame_addr,
18 struct target_sigaction *ka)
19 {
20 /* XXX return -TARGET_EOPNOTSUPP; */
21 return 0;
22 }
23
24 /*
25 * Compare to amd64/amd64/exec_machdep.c sendsig()
26 * Assumes that the memory is locked if frame points to user memory.
27 */
28 abi_long setup_sigframe_arch(CPUX86State *env, abi_ulong frame_addr,
29 struct target_sigframe *frame, int flags)
30 {
31 target_mcontext_t *mcp = &frame->sf_uc.uc_mcontext;
32
33 get_mcontext(env, mcp, flags);
34 return 0;
35 }
36
37 /* Compare to amd64/amd64/machdep.c get_mcontext() */
38 abi_long get_mcontext(CPUX86State *regs,
39 target_mcontext_t *mcp, int flags)
40 {
41 /* XXX */
42 return -TARGET_EOPNOTSUPP;
43 }
44
45 /* Compare to amd64/amd64/machdep.c set_mcontext() */
46 abi_long set_mcontext(CPUX86State *regs,
47 target_mcontext_t *mcp, int srflag)
48 {
49 /* XXX */
50 return -TARGET_EOPNOTSUPP;
51 }
52
53 abi_long get_ucontext_sigreturn(CPUX86State *regs,
54 abi_ulong target_sf, abi_ulong *target_uc)
55 {
56 /* XXX */
57 *target_uc = 0;
58 return -TARGET_EOPNOTSUPP;
59 }