From patchwork Mon Sep 13 01:41:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Chen X-Patchwork-Id: 44930 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D44E13857C69 for ; Mon, 13 Sep 2021 01:42:58 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by sourceware.org (Postfix) with ESMTPS id AE5613857C71 for ; Mon, 13 Sep 2021 01:41:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AE5613857C71 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-pj1-x1029.google.com with SMTP id j10-20020a17090a94ca00b00181f17b7ef7so5435504pjw.2 for ; Sun, 12 Sep 2021 18:41:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nSQmwROcv/oeUnyd63OKOvZHXHfyP4pGcCHwesyDjvY=; b=BCY5519jqoB6POQ1qZzDrh4ikOXj1hk3l1+xRSI5BmJgZNf0aBxNjP4dO54a2SdM4Q 6HMtew/+uF9odzWAw5JiymtUMBSYN3T3lgxDfR/PrVce1g9Ued8P9v+mKxWzCPLT1FMM RczbFeD4Tvha/Cj4/Bt56PKI5PkkXrDO9kDjsd2dXfh18CHOdFE7bqRAuGRsdOp8hZdm 2V+WNQRaHTBL0FcAaznIW0cQsyJVfO41MIqiBQ85Af615yTeZm8F073P7b8fisjy6key G/30kIbzNLo9ESuySS+ayuKUesvStValzI5s6FHjrqZdbm8Gj6rAMsYsM4ivveqmcUQD MSEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nSQmwROcv/oeUnyd63OKOvZHXHfyP4pGcCHwesyDjvY=; b=KRUrQFYBYf4qcWqwO4AE3p6rGFJAqt7SdDJNgBagh7u2o8/anVr+irxzL9qQnk8lYz 3/rtqD3GJcmSe90lyDM+5VuRDLDUfXlftetJlaEeVH4RElbZhC7lMwimHnCvfEjwthsb ZQfeJauvYkaeL4l71TYFusi80hdUUTL97fXv+pBkkLpyFbo4FyAbbBSecH4udt1ydRcq 0DqZu4pGUvQJgrfq7G8dyVDsWhCj0aGNqjmcwXtHRoQjvNiOAUzXlVqPZWBE9N0TFp9r h4XNe7iDDE1EibELsSZ7Bzb8ntILO3RnjfMz6rR/1TtlgCYnn1jwU6tbbrvDbvHP+ZF6 zl4Q== X-Gm-Message-State: AOAM531foPy1pMuCyYVsyIABVdEBuH7KoHRNNSgVKsHpHA060RjqxNUX UnLmL05k2OtSdkHZB6kQ4VerLUiqyMUlhw== X-Google-Smtp-Source: ABdhPJwOFLOKx21miJW7xihJqSWSh4s8OdSBGbPb+yZGhp6PwwZbj9CyzLA+164rQbqkIL0o+k4+Qg== X-Received: by 2002:a17:90a:fc8e:: with SMTP id ci14mr10126719pjb.12.1631497298669; Sun, 12 Sep 2021 18:41:38 -0700 (PDT) Received: from localhost.localdomain (36-227-141-62.dynamic-ip.hinet.net. [36.227.141.62]) by smtp.gmail.com with ESMTPSA id i10sm5052173pfk.87.2021.09.12.18.41.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Sep 2021 18:41:38 -0700 (PDT) From: Vincent Chen To: libc-alpha@sourceware.org, palmer@dabbelt.com Subject: [RFC patch 2/5] RISC-V: Reserve about 5K space in mcontext_t to support future ISA expansion. Date: Mon, 13 Sep 2021 09:41:15 +0800 Message-Id: <1631497278-29829-3-git-send-email-vincent.chen@sifive.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1631497278-29829-1-git-send-email-vincent.chen@sifive.com> References: <1631497278-29829-1-git-send-email-vincent.chen@sifive.com> X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andrew@sifive.com, Vincent Chen Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" Following the changes of struct sigcontext in Linux to reserve about 5K space to support future ISA expansion. --- sysdeps/unix/sysv/linux/riscv/sys/ucontext.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysdeps/unix/sysv/linux/riscv/sys/ucontext.h b/sysdeps/unix/sysv/linux/riscv/sys/ucontext.h index cfafa44..80caf07 100644 --- a/sysdeps/unix/sysv/linux/riscv/sys/ucontext.h +++ b/sysdeps/unix/sysv/linux/riscv/sys/ucontext.h @@ -82,6 +82,8 @@ typedef struct mcontext_t { __riscv_mc_gp_state __gregs; union __riscv_mc_fp_state __fpregs; + /* 5K + 256 reserved for vector state and future expansion. */ + unsigned char __reserved[5376] __attribute__ ((__aligned__ (16))); } mcontext_t; /* Userlevel context. */