From patchwork Mon Sep 13 01:41:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Chen X-Patchwork-Id: 44929 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 543B13857C69 for ; Mon, 13 Sep 2021 01:42:09 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by sourceware.org (Postfix) with ESMTPS id A80913858429 for ; Mon, 13 Sep 2021 01:41:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A80913858429 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-pl1-x62d.google.com with SMTP id bb10so4778972plb.2 for ; Sun, 12 Sep 2021 18:41:36 -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=pLngZIKldCHq+lE8H3U99KHnGQ2Uv/zXuilixLPNQj8=; b=EiFsX+tLyRIWU309PKUIr2JPZRklhh4TmjQbezrRwocgo0oCF08HYRStU+JLZ0Nmko qWw+NA7Kt2dl7CpoV+j7ZOKEsNHSXoLCW0XKd7/F7bj80Vx32CKMDwFGnMXwHYPMmeYE bDlX/P38Cou0RFun94v+W9GkpAKBivu3NrfIKqc7fZd+j1jP3kIaY9Gv3SU1DNBBupI5 6VD/Xq9vuiHJDSNkb7sUszLs4zeIJmHb4p/t5R9AGeafhk9QlP9D+jEPP7C8PZKotHBp wIWjPZ0rTevIFkqH8ZiQVxqFH7jtG66gZtaU1zvV7vmisVJDBF+HCy0uLRguFDUy6usm Zrww== 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=pLngZIKldCHq+lE8H3U99KHnGQ2Uv/zXuilixLPNQj8=; b=iHwlKRq+foGsflri/w/kJvRqxEC/ciAEX48VWr050VlJLBVz/aOx0tKQYKAfKyXRy/ GueuaVzH8fURUsLcyEeKnaEzeZQWVXLRGQ+1Lgw9E55tdjc5HuVi4p9vBpC7jfI1vI+0 pIZf/6FTa5efaJ+yKEvNtqasdR2Ida+VUq4Jw9hp58bNHli7a+t6IN2yeRkyERP56uXY FZkv6K3BbW6lyGqsu6Aqj8C0XAxfOFTpMkN7h6Q3SbHcxEHbW87+ET54DgOUgmrrm7IR veqzNvybnYjLF1K3mR8TEvvB/S/17LTU+umfypmaFo2un0RhASrW+JRdcZaWotMVTQoz Z8zw== X-Gm-Message-State: AOAM532+/7NY9B7Yo21JJUbeYbzU0sZSFNpawTSqcqtjp0JZDtbSX4uU /GmofuISarr5DRSRMHCk96vFAXi5mJ/4XA== X-Google-Smtp-Source: ABdhPJz0F0rHvQ5I0LfYmyFZAXgRC5Z4inU5lBo8HZtbeba3m3y1IX3hTzcuxK5FJRWCBgPyMdEIvg== X-Received: by 2002:a17:902:9692:b0:13a:2554:9646 with SMTP id n18-20020a170902969200b0013a25549646mr8354917plp.9.1631497295497; Sun, 12 Sep 2021 18:41:35 -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.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Sep 2021 18:41:35 -0700 (PDT) From: Vincent Chen To: libc-alpha@sourceware.org, palmer@dabbelt.com Subject: [RFC patch 1/5] RISC-V: Remove riscv-specific sigcontext.h Date: Mon, 13 Sep 2021 09:41:14 +0800 Message-Id: <1631497278-29829-2-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.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, 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" Remove riscv-specific sigcontext.h so that Glibc can directly use sigcontext.h provided by the kernel to reduce synchronization work when new extension support is introduced. --- sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h | 31 ------------------------- 1 file changed, 31 deletions(-) delete mode 100644 sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h diff --git a/sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h b/sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h deleted file mode 100644 index 14e4e06..0000000 --- a/sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h +++ /dev/null @@ -1,31 +0,0 @@ -/* Machine-dependent signal context structure for Linux. RISC-V version. - Copyright (C) 1996-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library. If not, see - . */ - -#ifndef _BITS_SIGCONTEXT_H -#define _BITS_SIGCONTEXT_H 1 - -#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H -# error "Never use directly; include instead." -#endif - -struct sigcontext { - /* gregs[0] holds the program counter. */ - unsigned long int gregs[32]; - unsigned long long int fpregs[66] __attribute__ ((__aligned__ (16))); -}; - -#endif