From nobody Mon Feb 19 16:45:01 2024 X-Original-To: dev-commits-src-branches@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 4TdpL56NHwz5C995; Mon, 19 Feb 2024 16:45:01 +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 4TdpL52c0vz4bHB; Mon, 19 Feb 2024 16:45:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708361101; 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=41DyVDRVWmibXXmHxWtxCj7ndKCswhyR0AOpeoj+Mpw=; b=l6Q5/yHMMCy+Gyw9+oACirNZ5XRGdJcVElkwtYnludR7a3b163IUijNQQrFdVjPsxQ1sJq 5QBfH8Arx3gKmX9jFgWB2VIZmYHpS1O3XYZpkC2P4HuWFFzP/oscZqj8NL/LAumyPlW3Cv OiQtSKxMJaeY9XuiRwqjnzDG4crTVqT/RE+tOySPdCjERz1opJ8FC9Ptp653RdUhEuwz2T CPhmeGQvUXLrjx8xeG9pkYIjhnoozl/wMGHt1vS/taD5eTtLqP5i4GB4Lh6h0FwJbrtGp+ ZZz5uQo+FFt9LzfRYGOtWZIYZ0Nzrj6hKk4TREDecs3QGQ83BQtw0Ql+/285Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708361101; 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=41DyVDRVWmibXXmHxWtxCj7ndKCswhyR0AOpeoj+Mpw=; b=GvVpH3BnmQGTi/lSF5+1NmVRPHvaemcqpr4r786ca42v5fe46KmZu93EPHkh7CfUJ21S1c 4GTefelfQe3FJAczcvncp4Q4DOZvKl/RlgX4J+91sBYjmehIEDg/h2K+nc3UbYDcmP0klH f04JYzJCVmrzStK4Bo36164SYa+axCB4rQEGRNUElFsmKUTMcLDUgPcivGjE+CeB71Fo1a HuO0Kja0tXt5dvNBc/+lPy3EnY4ISmRLNN/rq+hvF5Drfhohagraf8aQb7RxIFuj4lmp+n am2eqzwW2R9sdF13004PRKYsM7abUn/4Zc12XTROCkRbp0QnJGUCfuZYXoYMBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708361101; a=rsa-sha256; cv=none; b=UQmOze8ZbUbNZHR/xqwf/D19/vi/ptuIV/N0cR78s3fPcvZAyOTGQDmNnaTajAErHCHVlR v2uF2dHkmK/ha5AgXm1/cwrb/SghUjBySWir6VVwaXgW6H6m44PlD2oe9RYDa5rBJOA0df 6V3KvsMM5cKyilGK8mA7CkVjuj5c6+fPHR6ymztsxkXxWt92I0gvs9NXezlsllgBzUyG9g I333gtqy1tww6tCDnddixtdI2AkQAOZimwKtW+oY1Pb6SEoy33xEYkHMEZ48IXuBDBJ/Jt l0jK6hGiJSXSil67zw2bFaiU8k81hS/Y8ME6SklXuyJyCepCazjvgNIS+yEh3Q== 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 4TdpL51kBVzjVT; Mon, 19 Feb 2024 16:45:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41JGj1SV094868; Mon, 19 Feb 2024 16:45:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41JGj1WO094865; Mon, 19 Feb 2024 16:45:01 GMT (envelope-from git) Date: Mon, 19 Feb 2024 16:45:01 GMT Message-Id: <202402191645.41JGj1WO094865@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andrew Turner Subject: git: 15ef78831eb0 - stable/14 - arm64: Export HWCAP_CPUID List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 15ef78831eb01a0e42317f7b6f03a227fae89e9d Auto-Submitted: auto-generated The branch stable/14 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=15ef78831eb01a0e42317f7b6f03a227fae89e9d commit 15ef78831eb01a0e42317f7b6f03a227fae89e9d Author: Andrew Turner AuthorDate: 2023-09-22 16:20:17 +0000 Commit: Andrew Turner CommitDate: 2024-02-19 13:08:35 +0000 arm64: Export HWCAP_CPUID We have export the CPUID registers since 2018 but never set the HWCAP_CPUID flag to tell userspace it could use them. Fix this by setting it. Sponsored by: Arm Ltd (cherry picked from commit d61f9bfb0e5c119c97a559f187b1e9c73077307b) --- sys/arm64/arm64/identcpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/arm64/arm64/identcpu.c b/sys/arm64/arm64/identcpu.c index 1e9ff32754f0..4202cbe7878f 100644 --- a/sys/arm64/arm64/identcpu.c +++ b/sys/arm64/arm64/identcpu.c @@ -2203,6 +2203,8 @@ identify_cpu_sysinit(void *dummy __unused) /* Find the values to export to userspace as AT_HWCAP and AT_HWCAP2 */ parse_cpu_features(); + /* We export the CPUID registers */ + elf_hwcap |= HWCAP_CPUID; #ifdef COMPAT_FREEBSD32 /* Set the default caps and any that need to check multiple fields */