From patchwork Mon Aug 5 20:48:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Jeanson X-Patchwork-Id: 95325 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 61934385C6C7 for ; Mon, 5 Aug 2024 20:50:51 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from smtpout.efficios.com (smtpout.efficios.com [IPv6:2607:5300:203:b2ee::31e5]) by sourceware.org (Postfix) with ESMTPS id A6E28385C6CD for ; Mon, 5 Aug 2024 20:49:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A6E28385C6CD 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 A6E28385C6CD Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:5300:203:b2ee::31e5 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722890948; cv=none; b=QH3t2a6KB8/A2ryCu0erRcw+ErRn1qyOas2MVZlZTEagOhl1rZn4IB0mnzy4uJD70jTe/kMw4FmrvpqYsXvVKWkrwWlhmYKyjqwjyTH6KeAxx+iViacrAt4UYHQwiKXRhKQmz0sEY3LWcJK9vs+Z7cwY5Z3i5C0zQKuib9yUP0w= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722890948; c=relaxed/simple; bh=4cEI3WnY/55P6iPHOeHIt0taPHUI+xEqdm/n6l6641U=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=AS650+dUaAx+rWsVi3s7o+WyTUBQ2ywXrKjJgG9mueq5Ps73SxxsYGvYuas368QwzyLB7uCw+slsoi9DjuJpB4jfSylnxNojyT96gis7EcNvlxTepA3t560P545yZIcfkBxfHLDWib9SMLxukBsakt8CSu1HqzJHrSMbaNPYm9E= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1722890944; bh=4cEI3WnY/55P6iPHOeHIt0taPHUI+xEqdm/n6l6641U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vwYHZrZbk3SLb2iKmNBIs5uhWnwaN0b+6uEju0wcu/3eiEK1j8WjRD7BAsy5YMhYu F/hmUAxZwQ3qUD9xY815ngVdzU5fm55Plq7M1Tm2nMRdnZWY4IV16EFCeF2PB8YlyH ttkKAJnqCRUPI3l6E6WB6CsUhoCuk4M5TYLAmXjBBznuMHzSxrUCzK2Ne173L/PK0q BvW5v2o97CZsit6SPJQkQLWulziYfH6ZUeYrEQHJCWsbtXpwO3POHr4fT1dGimuPwU 16zKOWzmH9eX6ygYWZ8WaRQfBr2MJKfMU+mIIn1GVAnwc9L2h9oRKwPo4cIrQYCFFg T6Ll0+bjgMggw== 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 4Wd7p823N7z1GYD; Mon, 5 Aug 2024 16:49:04 -0400 (EDT) From: Michael Jeanson To: libc-alpha@sourceware.org Cc: Michael Jeanson , Florian Weimer , Carlos O'Donell , DJ Delorie , Mathieu Desnoyers Subject: [PATCH v12 07/17] nptl: Add for m68k Date: Mon, 5 Aug 2024 16:48:29 -0400 Message-Id: <20240801-rseq-abi-v11-split-v12-7-0e87479dddc0@efficios.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240801-rseq-abi-v11-split-v12-0-0e87479dddc0@efficios.com> References: <20240801-rseq-abi-v11-split-v12-0-0e87479dddc0@efficios.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.1 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~patchwork=sourceware.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/m68k/nptl/thread_pointer.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/sysdeps/m68k/nptl/thread_pointer.h b/sysdeps/m68k/nptl/thread_pointer.h new file mode 100644 index 0000000000..50f4df38da --- /dev/null +++ b/sysdeps/m68k/nptl/thread_pointer.h @@ -0,0 +1,30 @@ +/* __thread_pointer definition. m68k 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 + +extern void * __m68k_read_tp (void); + +static inline void * +__thread_pointer (void) +{ + return __m68k_read_tp(); +} + +#endif /* _SYS_THREAD_POINTER_H */