From nobody Mon Jan 10 17:18:15 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7DCC2194AE4C; Mon, 10 Jan 2022 17:18:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JXgWr1bYMz4fH9; Mon, 10 Jan 2022 17:18:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 12D561123; Mon, 10 Jan 2022 17:18:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20AHIFCU095890; Mon, 10 Jan 2022 17:18:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20AHIFGx095889; Mon, 10 Jan 2022 17:18:15 GMT (envelope-from git) Date: Mon, 10 Jan 2022 17:18:15 GMT Message-Id: <202201101718.20AHIFGx095889@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 479ef15dfd9f - main - libc: Teak comment about mips List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 479ef15dfd9f0f7934094a05f80d02f44eb046cc Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641835096; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Fvv24d5nR0dLbJFh5RCrFE0/5UGb/fSCbQzH8aZgo0o=; b=IMQg2nw9sIz3Flo/0HtmT7v4cyOGUYpNfimMVRZVVyi9xTXd1QKwZ9WLTEP3eS0lUSqeS2 v5p3TmpA/ti5pTNR4mAqyGJaapPHQbtURJZDH6Hsl8lesw1Lp2mpk3cEjWu0ooE94dMFYj 9k+mFNQJImADw0RWN7XXykyEZ7Ji7lSJlku1omlPl/IxpMnxZgyjHNMVVPkLpGY98MDFqR n0zmvE67Q9sm6XWap/EDHWh9W73PRiMV6ER4KqvjAn4pMBpbpWxjTzhDjK49pOJ/79XqSc mTil54YJT2CZFV/70LMrU+lqGCT+RqQV0Ilrqw4+yWRzCcHeOaieZOEWgB5VaA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641835096; a=rsa-sha256; cv=none; b=lMbM9JKedhNJ40fLHh4JpC7iTL9d7aJC7zpgFhEC/ZMQRfX/ObYdiYFNwu+Li0NcAw5MOK QEZ8YL2e9j1vtIyBzMMAD1nSVswfkIfVbOYVDrg8+u1t923HatvcGvbbxUHZN8tpM2Rjdo Opv+BPYcKwJhxhL1tgZTpIjvftILv0u+4RlJ9WTmHabIODbU7HAfntOZJ3W8dctLz7j3iw 21cLeB5e7oLQjmLcQp9WmS45NPmDWaocdJeGxCM5i9rH2f1Yr4qvWd3cX40pRSrztdoynn eckp85v0akRXnWGxxvjdmg6gf5BwU1mdqqqKDouXo/rBPmSCeZAsk1N0bYpXpQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=479ef15dfd9f0f7934094a05f80d02f44eb046cc commit 479ef15dfd9f0f7934094a05f80d02f44eb046cc Author: Warner Losh AuthorDate: 2022-01-10 17:14:12 +0000 Commit: Warner Losh CommitDate: 2022-01-10 17:15:15 +0000 libc: Teak comment about mips Remove mips from the list of machines using TLS variant I and reformat paragraph. No functional change intended. Sponsored by: Netflix --- lib/libc/gen/tls.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/libc/gen/tls.c b/lib/libc/gen/tls.c index d75b883b68db..5ceaf439d839 100644 --- a/lib/libc/gen/tls.c +++ b/lib/libc/gen/tls.c @@ -148,11 +148,11 @@ libc_free_aligned(void *ptr) * Note: for Local Exec TLS Model, the offsets from TP (TCB in this case) to * TLS variables are computed by linker, so we cannot overalign TLS section. * - * - MIPS, PowerPC and RISC-V use modified version of variant I, - * described in [3] where TP points (with bias) to TLS and TCB immediately - * precedes TLS without any alignment gap[4]. Only TLS should be aligned. - * The TCB[0] points to DTV vector and DTV values are biased by constant - * value (TLS_DTV_OFFSET) from real addresses[5]. + * - PowerPC and RISC-V use modified version of variant I, described in [3] + * where TP points (with bias) to TLS and TCB immediately precedes TLS without + * any alignment gap[4]. Only TLS should be aligned. The TCB[0] points to DTV + * vector and DTV values are biased by constant value (TLS_DTV_OFFSET) from + * real addresses[5]. * * [1] Ulrich Drepper: ELF Handling for Thread-Local Storage * www.akkadia.org/drepper/tls.pdf