From nobody Mon Feb 19 16:44:49 2024 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 4TdpKt0xMcz5C93L; Mon, 19 Feb 2024 16:44:50 +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 4TdpKs5G0Fz4Zx4; Mon, 19 Feb 2024 16:44:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708361089; 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=2/8MAqvQW1t/omdaJWfx5CLBjYjk36rg0+INcS8NZi8=; b=hYxOerbIdF3u+aFTUdl/NQ2u/U1ZGom2u4MxwiR3h6uulFzJyFnQAULLpAwzQi9GeubvTx 6yo95sa5Qlc1D8uGS5hR6whRtrH5lvAZ+wELDGdwg0tqARMwlYkW3x9xSHf6aWVPoS7HLn 5LvSi8iXZEZjxQnbvo+n4k2OFlOsbdM0JuSols5B9v8q7dRaQJyjrarv95s6W2gt4NbX3j bqWn2mK+r714mO+kiavWyZVPBQBxczQrCYsyAUQ2SBo2/QExhdLhiM/U+f9bv0j0qrsTHL Go5OhmtZrEVY0m5li/k8IBgO6oEtSZQoBNs6Rk4D1Td7uLk+de0UuSBvBZK4ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708361089; 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=2/8MAqvQW1t/omdaJWfx5CLBjYjk36rg0+INcS8NZi8=; b=ibIB24sHqRtJ/g/19xt9Gj8e9A1sPG0noDxe4Hstn82ZQzXa85j7XHoPiV2J17+MaAzUcR nqqWAqZ5y34gvJ0EIXhSLvq4LUaWnGMOKrmBYMkxuIe1dLQIE7iZFIB+SUxjdJb+5k5Quu l5U/GJkkli8GOs737Y8u5pa9hTPVzfkmt+RSUYO/s+byb82SQaq9oOvdHXzeksxoK/T3qW NF4P4b9l2LCmi7bZOZ9qh0k08fwI2RFlzPM1co+HDSsC+ow/Srp4UU/uXh7rRgcvE9LHlw BiBT2x6aZJV78Lwa9M06HIwaHQe/ByZ3H5qRr3L5frEHhlr1KmO0FRB8QmX1pA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708361089; a=rsa-sha256; cv=none; b=k450vfqXYbB8oaDNrt9Qy/akUFQkTRqXKVxSORxjBm/VF2PWNXrKvV890npEoh7vbumKHN cJLd3wvb9lrGSbNe5PyGwHTaVJKZgv/uAHrxp8yDuvZNTBMPmdOkWUwpdhWey7uCjvUEe2 u3iHz5GlyqQQZWvVVbubLXrZQ+GRTpAz79s6Bd1AUiswUglseNyY1zdNgYjCa0POxEO88l Yq5DX5dRz0rCZhXwhimnbM+3mBPoL1w8b3cX9LFsoiwg5J4cW2Qfb69aUYci87+MXywx8J 9BPPu6iSMAXm9ZzpX5T7DMI32yzWmQHQq/p63LrVFt1o7S2vh88FCfWqODiPzw== 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 4TdpKs3X52zj6f; Mon, 19 Feb 2024 16:44:49 +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 41JGinFC093953; Mon, 19 Feb 2024 16:44:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41JGinsp093950; Mon, 19 Feb 2024 16:44:49 GMT (envelope-from git) Date: Mon, 19 Feb 2024 16:44:49 GMT Message-Id: <202402191644.41JGinsp093950@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: 3c89290626a7 - stable/13 - arm64: Export HWCAP_CPUID 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: andrew X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 3c89290626a7ed6db87774535bd07783c3c64e28 Auto-Submitted: auto-generated The branch stable/13 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=3c89290626a7ed6db87774535bd07783c3c64e28 commit 3c89290626a7ed6db87774535bd07783c3c64e28 Author: Andrew Turner AuthorDate: 2023-09-22 16:20:17 +0000 Commit: Andrew Turner CommitDate: 2024-02-19 12:39:24 +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 cb7850c2aa2a..ebd1abb67dcb 100644 --- a/sys/arm64/arm64/identcpu.c +++ b/sys/arm64/arm64/identcpu.c @@ -2041,6 +2041,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 */