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 D50AF3858401 for ; Mon, 10 Apr 2023 18:58:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D50AF3858401 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 1plwiW-0002rG-QX; Mon, 10 Apr 2023 14:58:16 -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=LyXJUaQLxwZ26JQRpvGPvnAfto7fWWNx2fCAQRR5z7M=; b=Hg66UF4YnidHqoZfQLVg 1jP75x7VlrXyZoT7ce85FKbmLY+ebpQ4UPymDVSGKipZAEvfTxIT1x+I9F88Rr/Mn8OnEoQt9V/gY ORX82VGWq7vFIMDC9ad0OxZnIsD2OBSL+qezu1tpau0FcpF2Yc/RRKtTVrWG6ZYb+INN+RxQiAAdA pIw5B1kEjCyM/dzAlEBXVGeMhKKgYjZViYfFLa14eUkZCmW2s0QJToFa1xqPjmy7wzrbqziN957pU E7XBxByKgo/ZeKTiyT0pS5JlZ/Vkp2OPgYD3ISZnT9xpqTT0eC/EWhEytSZMn3+QE+5fyzA5z+knV GSCvbWWpDWHLUw==; 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 1plwiW-0003M8-1q; Mon, 10 Apr 2023 14:58:16 -0400 Received: from samy by begin with local (Exim 4.96) (envelope-from ) id 1plwiU-0001KC-1h; Mon, 10 Apr 2023 20:58:14 +0200 Date: Mon, 10 Apr 2023 20:58:14 +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: <20230410185814.rjqm46ndc4pjvoac@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230319151017.531737-17-bugaevc@gmail.com> Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) X-Spam-Status: No, score=-6.4 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 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). Samuel