1 /* 2 * x86_64 signal definitions 3 * 4 * 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. 9 * 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. 14 * 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/>. 17 */ 18 19 #include "qemu.h" 20 21 /* 22 * Compare to amd64/amd64/machdep.c sendsig() 23 * Assumes that target stack frame memory is locked. 24 */ 25 abi_long set_sigtramp_args(CPUX86State *regs, 26 int sig, struct target_sigframe *frame, abi_ulong frame_addr, 27 struct target_sigaction *ka) 28 { 29 /* XXX return -TARGET_EOPNOTSUPP; */ 30 return 0; 31 } 32 33 /* 34 * Compare to amd64/amd64/exec_machdep.c sendsig() 35 * Assumes that the memory is locked if frame points to user memory. 36 */ 37 abi_long setup_sigframe_arch(CPUX86State *env, abi_ulong frame_addr, 38 struct target_sigframe *frame, int flags) 39 { 40 target_mcontext_t *mcp = &frame->sf_uc.uc_mcontext; 41 42 get_mcontext(env, mcp, flags); 43 return 0; 44 } 45 46 /* Compare to amd64/amd64/machdep.c get_mcontext() */ 47 abi_long get_mcontext(CPUX86State *regs, 48 target_mcontext_t *mcp, int flags) 49 { 50 /* XXX */ 51 return -TARGET_EOPNOTSUPP; 52 } 53 54 /* Compare to amd64/amd64/machdep.c set_mcontext() */ 55 abi_long set_mcontext(CPUX86State *regs, 56 target_mcontext_t *mcp, int srflag) 57 { 58 /* XXX */ 59 return -TARGET_EOPNOTSUPP; 60 } 61 62 abi_long get_ucontext_sigreturn(CPUX86State *regs, 63 abi_ulong target_sf, abi_ulong *target_uc) 64 { 65 /* XXX */ 66 *target_uc = 0; 67 return -TARGET_EOPNOTSUPP; 68 } 69