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/osdep.h"
23 * Compare to amd64/amd64/machdep.c sendsig()
24 * Assumes that target stack frame memory is locked.
26 abi_long
set_sigtramp_args(CPUX86State
*regs
,
27 int sig
, struct target_sigframe
*frame
, abi_ulong frame_addr
,
28 struct target_sigaction
*ka
)
30 /* XXX return -TARGET_EOPNOTSUPP; */
35 * Compare to amd64/amd64/exec_machdep.c sendsig()
36 * Assumes that the memory is locked if frame points to user memory.
38 abi_long
setup_sigframe_arch(CPUX86State
*env
, abi_ulong frame_addr
,
39 struct target_sigframe
*frame
, int flags
)
41 target_mcontext_t
*mcp
= &frame
->sf_uc
.uc_mcontext
;
43 get_mcontext(env
, mcp
, flags
);
47 /* Compare to amd64/amd64/machdep.c get_mcontext() */
48 abi_long
get_mcontext(CPUX86State
*regs
,
49 target_mcontext_t
*mcp
, int flags
)
52 return -TARGET_EOPNOTSUPP
;
55 /* Compare to amd64/amd64/machdep.c set_mcontext() */
56 abi_long
set_mcontext(CPUX86State
*regs
,
57 target_mcontext_t
*mcp
, int srflag
)
60 return -TARGET_EOPNOTSUPP
;
63 abi_long
get_ucontext_sigreturn(CPUX86State
*regs
,
64 abi_ulong target_sf
, abi_ulong
*target_uc
)
68 return -TARGET_EOPNOTSUPP
;