Received: from eggs.gnu.org ([2001:4830:134:3::10]:54469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDqw7-0002pu-Tx for qemu-devel@nongnu.org; Tue, 29 Dec 2015 04:51:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aDqw2-0008KU-SH for qemu-devel@nongnu.org; Tue, 29 Dec 2015 04:51:23 -0500 From: Michael Tokarev Date: Tue, 29 Dec 2015 12:51:13 +0300 Message-Id: <1451382673-5345-1-git-send-email-mjt@msgid.tls.msk.ru> Subject: [Qemu-devel] [PATCH trivial] linux-user: enable sigaltstack for all architectures List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Riku Voipio , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Michael Tokarev , John Paul Adrian Glaubitz There is no reason to limit sigaltstack syscall to just a few architectures and pretend it is not implemented for others. If some architecture is not ready for this, that architecture should be fixed instead. This fixes LP#1516408. Signed-off-by: Michael Tokarev --- This patch depends on a previous patch I sent, "unicore32: convert get_sp_from_cpustate from macro to inline", or else unicore32-user wont build. --- linux-user/syscall.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 6c64ba6..3ceb3e2 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8292,14 +8292,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, break; } case TARGET_NR_sigaltstack: -#if defined(TARGET_I386) || defined(TARGET_ARM) || defined(TARGET_MIPS) || \ - defined(TARGET_SPARC) || defined(TARGET_PPC) || defined(TARGET_ALPHA) || \ - defined(TARGET_M68K) || defined(TARGET_S390X) || defined(TARGET_OPENRISC) ret = do_sigaltstack(arg1, arg2, get_sp_from_cpustate((CPUArchState *)cpu_env)); break; -#else - goto unimplemented; -#endif #ifdef CONFIG_SENDFILE case TARGET_NR_sendfile: -- 2.1.4