From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 44DA2385841E for ; Mon, 10 Apr 2023 19:22:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 44DA2385841E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1plx5T-0008LF-Oe; Mon, 10 Apr 2023 15:21:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=In-Reply-To:MIME-Version:References:Subject:To:From: Date; bh=liK/26JmYbREJjijC5+E40dm3rG5vG//wxqhAUehoLo=; b=S6dxz0+Xk/DNZiqHDM2s 6BAxRl77+Ccu8lID/vxhdwroigHHLu6SyvU17p8vcW6RLfvhWjPLOnwjvWzA+6glicbqYNbV2FfeP Z300PCwuuaX/wVKZc7Olt6Ty4aAFyZKt+EJVXIYvbBXxAG2v9QMWMqyUXUjIpso/v7Q3Nh4I/s2DH N2v+GiHqW1FPLLdy2tEZnJ285mHT9GvAhppCNwaS2dBVIYVlRtJkkrOX0FsUJzkh3D9hbjruCZqWn xEXS7KLugLzw5XGiG8WNldaftRGyGjlNErisjIAUwaYNs2wVKrwCyY5j3NIz9OYqA4+cQvjaFjaSa azM/WHh3uvy05g==; Received: from [2a01:cb19:4a:a400:de41:a9ff:fe47:ec49] (helo=begin) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1plx5T-0006Oy-GV; Mon, 10 Apr 2023 15:21:59 -0400 Received: from samy by begin with local (Exim 4.96) (envelope-from ) id 1plx5S-0001mu-1i; Mon, 10 Apr 2023 21:21:58 +0200 Date: Mon, 10 Apr 2023 21:21:58 +0200 From: Samuel Thibault To: Sergey Bugaev Cc: libc-alpha@sourceware.org, bug-hurd@gnu.org Subject: Re: [RFC PATCH glibc 16/34] hurd: Add sys/ucontext.h and sigcontext.h for x86_64 Message-ID: <20230410192158.mmmcpeviwfc52e7c@begin> Mail-Followup-To: Sergey Bugaev , libc-alpha@sourceware.org, bug-hurd@gnu.org References: <20230319151017.531737-1-bugaevc@gmail.com> <20230319151017.531737-17-bugaevc@gmail.com> <20230410185814.rjqm46ndc4pjvoac@begin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Sergey Bugaev, le lun. 10 avril 2023 22:13:06 +0300, a ecrit: > On Mon, Apr 10, 2023 at 9:58 PM Samuel Thibault wrote: > > > > Sergey Bugaev, le dim. 19 mars 2023 18:09:59 +0300, a ecrit: > > > +#ifdef __USE_GNU > > > +/* Number of each register in the `gregset_t' array. */ > > > +enum > > > +{ > > > + REG_GSFS = 0, /* Actually int gs, fs. */ > > > +# define REG_GSFS REG_GSFS > > > + REG_ESDS, /* Actually int es, ds. */ > > > +# define REG_ESDS REG_ESDS > > > > On second thought, why REG_ESDS? They are basically useless on amd64 > > > > Linux packs all segment registers in REG_CSGSFS, probably better to > > stuff them the same way? (all three really are 16bit only, even if the > > thread_state is padding them to 32bits). > > Exactly because that's how they are laid out in struct > i386_thread_state, if you count in 8-byte chunks. But we don't have to map to that. Samuel