From patchwork Fri Aug 2 19:02:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Jeanson X-Patchwork-Id: 1968483 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=efficios.com header.i=@efficios.com header.a=rsa-sha256 header.s=smtpout1 header.b=coDzuTKS; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WbFf849gDz1yZl for ; Sat, 3 Aug 2024 05:05:36 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D3DB6385F028 for ; Fri, 2 Aug 2024 19:05:34 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by sourceware.org (Postfix) with ESMTPS id 71C59385DDCE for ; Fri, 2 Aug 2024 19:02:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 71C59385DDCE Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=efficios.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 71C59385DDCE Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=167.114.26.122 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722625379; cv=none; b=PA84QBZubrqHv+1HrZ0LH1/AgsArTG3LJvLrMhJsyIAKHpBXJpj1hLlMjPNWz0pnQJTFxwMmoEf+UJf7LbrtN5nJh+8jUnooojsVE5CUMWrpX4823lFGYYRRZSXiD7yByz6+D9+OMBndnl/v+BjEhF/I+BG7ttf9nShSknYRDlc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722625379; c=relaxed/simple; bh=X/8cJ0pb4gHWKHspLWJlCCZkkP2ZF1foGLk3UZp2oUo=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=AdNQb1pdafdQoqC8v0dyKcR5zm7vOlxspNLNv+ODcKiFruL889ks/hDDXHud6AkLcRbSBODu6VD+HI1s/tVcpU33jbDbyVb6lrpj3rI2AxA5WA3jOT1PXqHY5c4IqhDZ4KKQLO2tbVrrB6wEQgbPe7G0g0052IMHiLwD7/g9gww= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1722625377; bh=X/8cJ0pb4gHWKHspLWJlCCZkkP2ZF1foGLk3UZp2oUo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=coDzuTKS9JW2WtRqokaTmB3yD3QLobPpRg3pEnHEgwv1+ZWUCVCBOgR9/mYN36VXm pNBSI16COJopBGWgGLupNc8bflwgW2RQcq7MAMpBt80rIt92wIChzNSsLtCgT7+NKB WJAF4R0B3nTlCzVtJsfZY2qtwlwqrL8y6I1k0khtoMSOo4U+FNaYFuGbDLyP30mPga 7dEtS11++64UgofYfWW2zAeYoamDeqsCUIWK9sn/FQBEvWTKg+IC3tGw03HSeyZWQ9 mD1doTtqyVsgs/LtrHG7v3zLnllzOb+UmM2A5NgRUaYlKSSy9Ohprle8eE7UDR/Wg8 unuFu4INLGRIw== Received: from mj-deb12-aarch64-glibc.internal.efficios.com (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4WbFb50RCGz1Fbv; Fri, 2 Aug 2024 15:02:57 -0400 (EDT) From: Michael Jeanson To: libc-alpha@sourceware.org Cc: Michael Jeanson , Florian Weimer , Carlos O'Donell , DJ Delorie , Mathieu Desnoyers Subject: [PATCH RFC v11 10/17] nptl: Add for microblaze Date: Fri, 2 Aug 2024 15:02:23 -0400 Message-Id: <20240801-rseq-abi-v11-split-v11-10-b7bbc0138bfd@efficios.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240801-rseq-abi-v11-split-v11-0-b7bbc0138bfd@efficios.com> References: <20240801-rseq-abi-v11-split-v11-0-b7bbc0138bfd@efficios.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, 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 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org This will be required by the rseq extensible ABI implementation on all Linux architectures exposing the __rseq_size and __rseq_offset symbols to set the 'cpu_id' field so applications can test if rseq is registered. Signed-off-by: Michael Jeanson --- sysdeps/microblaze/nptl/thread_pointer.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/sysdeps/microblaze/nptl/thread_pointer.h b/sysdeps/microblaze/nptl/thread_pointer.h new file mode 100644 index 0000000000..1c56a7debf --- /dev/null +++ b/sysdeps/microblaze/nptl/thread_pointer.h @@ -0,0 +1,30 @@ +/* __thread_pointer definition. microblaze version. + Copyright (C) 2021-2024 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 _SYS_THREAD_POINTER_H +#define _SYS_THREAD_POINTER_H + +register void *__thread_register asm ("r21"); + +static inline void * +__thread_pointer (void) +{ + return __thread_register; +} + +#endif /* _SYS_THREAD_POINTER_H */