From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by sourceware.org (Postfix) with ESMTPS id 5529438582A1 for ; Tue, 21 Feb 2023 21:19:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5529438582A1 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-x12c.google.com with SMTP id f41so7433585lfv.13 for ; Tue, 21 Feb 2023 13:19:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hYZtb6/taK2PJl1UD1tF7FsgO0N/5WSUCwCWRIFruK0=; b=aR8KSxJoJ7IrEc2LroDAf695v/fxTIE6IMylld/H4KVebqtef42Bfj7gzmxq0d335m LzX1khiLBS/JDafWqmzHzgLPT8bjRBtfbP7/w43cLempU6wXsCjnysz943J7lYjSqQ1H cZ96Ii/5oS1EuGvRNoY0CsIyTDlMLQAYxRTP+2qZqzD/RoR0Aiu3zIQAw+3FPHLd9zfP ZmZS7aEBCQGi7eyuhdV2T02yw3WoOwrIQ64wtOksF8WqsbRnCMmiHdv49hnnWTEKbL8q V2lY6C3jBY0r4GbrU/7/tCarOZjVCa66rMQaro/yTYI1a0S92xhsphxoS6Ve+IW9eJvK KkwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hYZtb6/taK2PJl1UD1tF7FsgO0N/5WSUCwCWRIFruK0=; b=UcMDdWzp+iUcjWkxMLV20S8CXEzNTf7TnjrETuKkVnPjyKucLCiI1a9XAMXu8MY7Yb d9VS0prqXk5Ek22rbU2iZBF/Irh6Bbnuf5YCuDnaOPevdfeWgv5tlqQijrtWxAVR91Vq r0X+5StZBMD2OjzDyTCbu1alM6OURN+26v+UiNQrNa8VSgOCMape9zyOzgEVfBdHRSZu bbodvnJ/zmlwHqZZ/IarqtO/fPivym0HMDEzMe8QstEjPhj9aJDVVEl5OW4w/eqhubUc QBVibO3JkgodQ1ze/f7xDsWhe1nrtGLMuxCbQX5DozPXSoO9EM2D5qy7RT66SRK7NfbN BZTQ== X-Gm-Message-State: AO0yUKUo4+deGFWqeB18HIp5Lk0QTwFvvTLx8qQpuqz5Uh2uyTsuHjaU qLNBjs7XtdWN5uxMPgaVuM4= X-Google-Smtp-Source: AK7set9xlPjnsoQ3+JW4853+nMUwThEP0rylsjK8C2InixrucHlLqBLWcvSVJPmsK8PQF8WIBlxCAA== X-Received: by 2002:ac2:5234:0:b0:4cb:4374:cc78 with SMTP id i20-20020ac25234000000b004cb4374cc78mr2103828lfl.26.1677014381249; Tue, 21 Feb 2023 13:19:41 -0800 (PST) Received: from surface-pro-6.. ([2a00:1370:818c:4a57:d7b6:7913:7a86:3102]) by smtp.gmail.com with ESMTPSA id m17-20020a195211000000b00498f77cfa63sm1949097lfb.280.2023.02.21.13.19.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 13:19:40 -0800 (PST) From: Sergey Bugaev To: bug-hurd@gnu.org, libc-alpha@sourceware.org Cc: =?UTF-8?q?Fl=C3=A1vio=20Cruz?= , Noah Goldstein , Samuel Thibault , Sergey Bugaev Subject: [PATCH v2 4/4] htl: Add pthreadtypes-arch.h for x86_64 Date: Wed, 22 Feb 2023 00:19:32 +0300 Message-Id: <20230221211932.296459-5-bugaevc@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230221211932.296459-1-bugaevc@gmail.com> References: <20230221211932.296459-1-bugaevc@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,KAM_NUMSUBJECT,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Signed-off-by: Sergey Bugaev --- sysdeps/x86_64/htl/bits/pthreadtypes-arch.h | 36 +++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 sysdeps/x86_64/htl/bits/pthreadtypes-arch.h diff --git a/sysdeps/x86_64/htl/bits/pthreadtypes-arch.h b/sysdeps/x86_64/htl/bits/pthreadtypes-arch.h new file mode 100644 index 00000000..1d402cc6 --- /dev/null +++ b/sysdeps/x86_64/htl/bits/pthreadtypes-arch.h @@ -0,0 +1,36 @@ +/* Machine-specific pthread type layouts. Hurd x86_64 version. + Copyright (C) 2002-2023 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_PTHREADTYPES_ARCH_H +#define _BITS_PTHREADTYPES_ARCH_H 1 + +#define __SIZEOF_PTHREAD_MUTEX_T 32 +#define __SIZEOF_PTHREAD_ATTR_T 48 +#define __SIZEOF_PTHREAD_RWLOCK_T 48 +#define __SIZEOF_PTHREAD_BARRIER_T 40 +#define __SIZEOF_PTHREAD_MUTEXATTR_T 16 +#define __SIZEOF_PTHREAD_COND_T 40 +#define __SIZEOF_PTHREAD_CONDATTR_T 8 +#define __SIZEOF_PTHREAD_RWLOCKATTR_T 4 +#define __SIZEOF_PTHREAD_BARRIERATTR_T 4 +#define __SIZEOF_PTHREAD_ONCE_T 8 + +#define __LOCK_ALIGNMENT +#define __ONCE_ALIGNMENT + +#endif /* bits/pthreadtypes.h */ -- 2.39.2