From nobody Sat May 18 12:47:52 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1602131646; cv=none; d=zohomail.com; s=zohoarc; b=kC/e6+TO726SeZhXGUkVTqGHGpmF6fkix7434mcXtrMjlbkuPuXoBDvB9IFKlJTG5KargX1FAMtVGarZwEDHE30p7ff8ibVDve9pDQ/rpCmigBlxiN3ZR8xwag6lFQZmMaY8MvlcwV4EltT7+XCCsmuXcG7Ib6q7/rqRHMhqF3U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602131646; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=YDm8IEu7uQNfKR1zjmXJ5345KlVTorHlU2CuEBSHuuI=; b=TRvxUI5NUHvp6MrXWT+0TuBs2b8i1PxRQxavtezZXfO4hqYcW3AV9UJEBf+e9U1AGvUdOpF9r6OX69JIbGHFnk9hk4baAAnTAGjVR//E5plHotCpR1FlIFHti3OxgiQojNNFstocFohm1KcDR5J92/ugoDcaWBkPqKglnwBFstE= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1602131646124172.77108679929734; Wed, 7 Oct 2020 21:34:06 -0700 (PDT) Received: from localhost ([::1]:37840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQNcy-0004LI-Qz for importer@patchew.org; Thu, 08 Oct 2020 00:34:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQNaY-00030X-5h for qemu-devel@nongnu.org; Thu, 08 Oct 2020 00:31:34 -0400 Received: from lucky1.263xmail.com ([211.157.147.133]:52998) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQNaV-0003ur-76 for qemu-devel@nongnu.org; Thu, 08 Oct 2020 00:31:33 -0400 Received: from localhost (unknown [192.168.167.16]) by lucky1.263xmail.com (Postfix) with ESMTP id D4B8EC974E; Thu, 8 Oct 2020 12:31:25 +0800 (CST) Received: from localhost.localdomain (unknown [111.30.214.76]) by smtp.263.net (postfix) whith ESMTP id P30220T139797897148160S1602131473193031_; Thu, 08 Oct 2020 12:31:26 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 X-UNIQUE-TAG: <9ca2866c13437ba1c64229f912200d3d> X-RL-SENDER: chengang@emindsoft.com.cn X-SENDER: chengang@emindsoft.com.cn X-LOGIN-NAME: chengang@emindsoft.com.cn X-FST-TO: riku.voipio@iki.fi X-SENDER-IP: 111.30.214.76 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 X-System-Flag: 0 From: chengang@emindsoft.com.cn To: riku.voipio@iki.fi, laurent@vivier.eu Subject: [PATCH] linux-user: target: signal: Support TARGET_SS_AUTODISARM Date: Thu, 8 Oct 2020 12:31:05 +0800 Message-Id: <20201008043105.21058-1-chengang@emindsoft.com.cn> X-Mailer: git-send-email 2.24.0.308.g228f53135a MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=211.157.147.133; envelope-from=chengang@emindsoft.com.cn; helo=lucky1.263xmail.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/08 00:31:26 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chen Gang , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Chen Gang Add definitions to pass building. Signed-off-by: Chen Gang Reviewed-by: Laurent Vivier --- linux-user/alpha/target_signal.h | 6 ++++++ linux-user/hppa/target_signal.h | 5 +++++ linux-user/mips/target_signal.h | 6 ++++++ linux-user/mips64/target_signal.h | 5 +++++ linux-user/sparc/target_signal.h | 6 ++++++ 5 files changed, 28 insertions(+) diff --git a/linux-user/alpha/target_signal.h b/linux-user/alpha/target_sig= nal.h index cd63d59fde..241e207815 100644 --- a/linux-user/alpha/target_signal.h +++ b/linux-user/alpha/target_signal.h @@ -93,4 +93,10 @@ typedef struct target_sigaltstack { #define TARGET_GEN_SUBRNG7 -25 =20 #define TARGET_ARCH_HAS_SETUP_FRAME + +/* bit-flags */ +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling = */ +/* mask for all SS_xxx flags */ +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM + #endif /* ALPHA_TARGET_SIGNAL_H */ diff --git a/linux-user/hppa/target_signal.h b/linux-user/hppa/target_signa= l.h index c2a0102ed7..2c9d4e611e 100644 --- a/linux-user/hppa/target_signal.h +++ b/linux-user/hppa/target_signal.h @@ -66,4 +66,9 @@ typedef struct target_sigaltstack { #define TARGET_MINSIGSTKSZ 2048 #define TARGET_SIGSTKSZ 8192 =20 +/* bit-flags */ +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling = */ +/* mask for all SS_xxx flags */ +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM + #endif /* HPPA_TARGET_SIGNAL_H */ diff --git a/linux-user/mips/target_signal.h b/linux-user/mips/target_signa= l.h index 66e1ad44a6..4fdf15e279 100644 --- a/linux-user/mips/target_signal.h +++ b/linux-user/mips/target_signal.h @@ -73,4 +73,10 @@ typedef struct target_sigaltstack { /* compare linux/arch/mips/kernel/signal.c:setup_frame() */ #define TARGET_ARCH_HAS_SETUP_FRAME #endif + +/* bit-flags */ +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling = */ +/* mask for all SS_xxx flags */ +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM + #endif /* MIPS_TARGET_SIGNAL_H */ diff --git a/linux-user/mips64/target_signal.h b/linux-user/mips64/target_s= ignal.h index 753e91fbd6..93c64df3b7 100644 --- a/linux-user/mips64/target_signal.h +++ b/linux-user/mips64/target_signal.h @@ -68,4 +68,9 @@ typedef struct target_sigaltstack { #define TARGET_MINSIGSTKSZ 2048 #define TARGET_SIGSTKSZ 8192 =20 +/* bit-flags */ +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling = */ +/* mask for all SS_xxx flags */ +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM + #endif /* MIPS64_TARGET_SIGNAL_H */ diff --git a/linux-user/sparc/target_signal.h b/linux-user/sparc/target_sig= nal.h index 5cc40327d2..a465d699d2 100644 --- a/linux-user/sparc/target_signal.h +++ b/linux-user/sparc/target_signal.h @@ -68,4 +68,10 @@ typedef struct target_sigaltstack { #define TARGET_SIGSTKSZ 16384 =20 #define TARGET_ARCH_HAS_SETUP_FRAME + +/* bit-flags */ +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling = */ +/* mask for all SS_xxx flags */ +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM + #endif /* SPARC_TARGET_SIGNAL_H */ --=20 2.24.0.308.g228f53135a