From patchwork Wed Aug 16 18:03:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 714046 Delivered-To: patch@linaro.org Received: by 2002:a5d:4012:0:b0:317:ecd7:513f with SMTP id n18csp2491575wrp; Wed, 16 Aug 2023 11:05:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE02rBoURbfmo1DF6FePZGiGL+TdlPIrrj42xKq7XezAkYsZArCMuMycL8DfYsRa1T4j1D0 X-Received: by 2002:a0c:e284:0:b0:63c:fe16:d516 with SMTP id r4-20020a0ce284000000b0063cfe16d516mr2671340qvl.7.1692209159097; Wed, 16 Aug 2023 11:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692209159; cv=none; d=google.com; s=arc-20160816; b=hbEZKxl6rVjlYvILNqtyh98HN/l4zfjSjTEUUccqrr3CAcYTP+HKHMRTGFDi2k5wrX qwvzhrRtPvINR56YpX2RyAjrj7EFRwt+N8Q5IhjIS0jtaOEbuiQ3Xv72R6JpnDYc2Xk2 YC+aEcl7EBZuf/nOBMNmAiNFcPWDCloBy4Y1e1KjtRdglfwKQQbhlSwsYy5BT0mZZGMp HxK0+oW3HVV0Feai09w9fWrnkJUNsiNhYRQoquJ4zzjPoStZqTkwtCARerG61q7hvWUU +kfyRUUi6nDajP9b0m+5/75NYbzwuQRqsM776mnx8eJ9pHIz1Lk48/xx+0EV98c8otfG MSrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=6RKu2/5G+zSGtoRuicJK2UTVps/EcNkegXQWs2RCjrs=; fh=oYAd+8Lj9FKlReeF9hgENQXa3P4LhBP5C4njRBbobDA=; b=ZSYMouZOrIOvvPhB15EmWqzyxSHGdnt0KTl3yU1FMGYRolGhh8ZHr7ewB4d1vI04JY bAShZ/qbvQPD1jYX+DJr2QVQ1OzhZLh+t9+ex0jX5iVrEcZmiGCsXz3iy0oOVilRyFWq 0ZQIthgzKO/zHeRBACX3rjgAUISBOT07jpOZI2UQ+L9F/RReUGNmlWVaTDwu6GDIRey9 ZC0W64ZQKszjZAaYOQD1hSEiyoUPhGmzmLD27lNiQ4xwELglC5kCa5JNDvhhAyRNE36i 7HeQNKpeNIkJNx8Mo7VT9WnIuA1RlOFk5l1nmvB+ESiD7zDYxL8xWh0R+1/9pcZ/rFUK /PSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bQltoNZa; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n5-20020a0c8c05000000b00635f23eef9bsi8757631qvb.393.2023.08.16.11.05.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Aug 2023 11:05:59 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bQltoNZa; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWKsM-0002Vm-N5; Wed, 16 Aug 2023 14:04:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWKs9-0002RO-70 for qemu-devel@nongnu.org; Wed, 16 Aug 2023 14:03:57 -0400 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qWKs6-0001MV-O8 for qemu-devel@nongnu.org; Wed, 16 Aug 2023 14:03:56 -0400 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1bdcb800594so26810285ad.1 for ; Wed, 16 Aug 2023 11:03:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692209033; x=1692813833; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=6RKu2/5G+zSGtoRuicJK2UTVps/EcNkegXQWs2RCjrs=; b=bQltoNZaHlNUSc7opy6R6T72e2EPzhHuQeZvpoXENAdZl2btIX6J4+VWQKP0uJV/jJ 9Ef72YMrsq1i7MQ8Dvl9JZgyJ2MP3MgW1bR5QI3T56OVRgGJmso/f+SOMRzPwAx0LXSy FZCfaCvL2WxmTig/IrikyO/0tZwqgwZwsY11NWwf2t3zD5xG1SYexQMAPLFscpjPiA6v 200Y30ZG+2af9a970JRRrOVPKJCwbNZLdT6O21s48rrtkni/DcUTt+r/mWWtXx9wrKeb PLBNFwfUP9KBZoe3eRMdC6J5y/YA0isXKtaXC9NtytAL+pjDDdEPvqNJL5QeFFmZwbpw KGjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692209033; x=1692813833; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6RKu2/5G+zSGtoRuicJK2UTVps/EcNkegXQWs2RCjrs=; b=kt87e9/nJrVciXNj/l7YYI8bCpI2vmyoAXK/+feVviLF9prpZQtnzdDT8MKo6XZHlN cyp2BIzsZxwztHYjdHrak2gdsf3h2I0cYI+ktWR1OOSfCvyjtRES9Qp5X6lsEVIm3vAP UMhT8jkN32bVzALySpodU/CWmbq5JQMYMUa4kt8L3reyJa8qYoSZaZMbIkcvv8HuCrtN pbJr746zYRwyq7X+XogWKMOUpvYjCOmb/C4278lUYfR9vdlC9LhHJZgcNrpEqArbHr8s GQg8WP5WFLzBdfPxwogc3HQOSJO8cViaB1b4EkAtmcFmQyXzh8iGxuSEu0AJDtZV9Shi ENTg== X-Gm-Message-State: AOJu0YyGLZlE02nUV44iRFhWS383jnmm2jjgVjHtv4oGqtgAwLwoMgrT winBo7BloFHsYIWcFV9YPYR6mj+eJ2LfzagHqQU= X-Received: by 2002:a17:903:120f:b0:1b9:f9a1:85f1 with SMTP id l15-20020a170903120f00b001b9f9a185f1mr2819242plh.19.1692209033464; Wed, 16 Aug 2023 11:03:53 -0700 (PDT) Received: from stoup.. ([2602:47:d483:7301:a064:e3f9:a812:973b]) by smtp.gmail.com with ESMTPSA id g14-20020a170902868e00b001bc2831e1a9sm13446584plo.90.2023.08.16.11.03.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 11:03:53 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 17/18] linux-user/s390x: Rename __SIGNAL_FRAMESIZE to STACK_FRAME_OVERHEAD Date: Wed, 16 Aug 2023 11:03:37 -0700 Message-Id: <20230816180338.572576-18-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230816180338.572576-1-richard.henderson@linaro.org> References: <20230816180338.572576-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x632.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson --- linux-user/s390x/signal.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/linux-user/s390x/signal.c b/linux-user/s390x/signal.c index f72165576f..0f8b8e04bf 100644 --- a/linux-user/s390x/signal.c +++ b/linux-user/s390x/signal.c @@ -26,7 +26,8 @@ #define __NUM_FPRS 16 #define __NUM_ACRS 16 -#define __SIGNAL_FRAMESIZE 160 /* FIXME: 31-bit mode -> 96 */ +/* Minimum stack frame size */ +#define STACK_FRAME_OVERHEAD 160 #define _SIGCONTEXT_NSIG 64 #define _SIGCONTEXT_NSIG_BPW 64 /* FIXME: 31-bit mode -> 32 */ @@ -63,7 +64,7 @@ typedef struct { } target_sigcontext; typedef struct { - uint8_t callee_used_stack[__SIGNAL_FRAMESIZE]; + uint8_t callee_used_stack[STACK_FRAME_OVERHEAD]; target_sigcontext sc; target_sigregs sregs; int signo; @@ -83,7 +84,7 @@ struct target_ucontext { }; typedef struct { - uint8_t callee_used_stack[__SIGNAL_FRAMESIZE]; + uint8_t callee_used_stack[STACK_FRAME_OVERHEAD]; /* * This field is no longer initialized by the kernel, but it's still a part * of the ABI.