From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.4 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 7E85C1F8C6 for ; Mon, 13 Sep 2021 01:42:58 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B8F493857C78 for ; Mon, 13 Sep 2021 01:42:57 +0000 (GMT) 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-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+e=80x24.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. */ -- 2.7.4