From nobody Mon Sep 25 11:00:42 2023 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 4RvKff6kZfz4vMZN; Mon, 25 Sep 2023 11:00:42 +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 4RvKff662Yz3LdD; Mon, 25 Sep 2023 11:00:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695639642; 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=iZdff3B47xjhfQ3jgowH2Q1d/jUvIqSqQx8fb9RoQxw=; b=DJHvzfeIefzR4JjpgWvTdikJkBc9ZvC4wxLP2MZAfN+xNKepUZjuLdwn7Y6TfvMG9Ko3iL IznL4FMkYUW2P8zwe0pqLY7cyRf1mXJxdp6AFH2U7TvKabJ5XjFbThQ3yVGVzhD7UM0tQV v8rOuJtRIwVtp9HyXH9lydKoThAK/ms/WUmgg5SP/VKeSATXhUmRdIPL4+2DCCC54pRAYK f/ULlDONSsI0WL+StOie8xasbts5fUhdpI4CP+Ew7sj/O3NQ2aTxmCusrSza7gJrFn3oJ6 NPWtFXPVlfSTRbfDpVw9591EEoVsQCO48ntPnOxhyL42cge5dJFGVnukHf/ZdA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695639642; a=rsa-sha256; cv=none; b=C/dWhImHOP+y3dE5src+5mkHAS+rYeO202V5fWD/n05M2h0O5/PentQz5JiJejHXtBd8mX XtZ58PSrtHBH6akhp9TxkiBeelJedXKVRx5rbMJFjTSM4UrkJcvOP2eBUXr8RKXdEKwpIr Ey1KvTqSJvVwme+ndI53Dy/q3sECfOiy+wMimjFJLmKCBnyJGncEH5I8K5JACTiCYzuL/W +GaRJKLImUhJr+KqEZ/nMRnsWpJH7QYx7HV69ZJvChDBPjqU1dDDkrxf6jujowypEq7+0x KYVjruOwJnlRi/oYjFFx5LnR2hqZOo7w+2SM4dzWbiA98+Mc6bUgDUjKOp2gSQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695639642; 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=iZdff3B47xjhfQ3jgowH2Q1d/jUvIqSqQx8fb9RoQxw=; b=simFBq4b1AD92lSuqtxwIGnHPakii1zoADgGMbsyTCr/kaM28aWJlq7tJf1I3q6Gsnty/x Qhqym+4BGJuJ2rN/OgT+AwXovP1O9x4lARsvTS6nVMEai3WiYnMM6CprdSkFKvU4vVF9Gj sDPQ+AFCxdy+sMcn2W31wa2iEDLCI1D6Qrj6N6ooKsUmDjEVAssX5hBc7wWdrXeM+e5HJo EcXObSQebKngQkPXod1aiT+BOlgsdhB9DwSaO+/pYkdR/1PJxfym73g+mJaNpXe7J19X2u yhL++KVWp83zvvA9GycM7e58rZshRqxiChnnOfW5ocTi0Onz3gL3/VO/vbl/4g== 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 4RvKff55K0z1QMb; Mon, 25 Sep 2023 11:00:42 +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 38PB0g1G052314; Mon, 25 Sep 2023 11:00:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38PB0gSS052311; Mon, 25 Sep 2023 11:00:42 GMT (envelope-from git) Date: Mon, 25 Sep 2023 11:00:42 GMT Message-Id: <202309251100.38PB0gSS052311@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: 4401550f74ba - stable/13 - Add a psci macro to build a version value 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: 4401550f74ba50f34e9f443307d170c6b05ba62f Auto-Submitted: auto-generated The branch stable/13 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=4401550f74ba50f34e9f443307d170c6b05ba62f commit 4401550f74ba50f34e9f443307d170c6b05ba62f Author: Andrew Turner AuthorDate: 2023-03-16 12:14:01 +0000 Commit: Andrew Turner CommitDate: 2023-09-25 08:41:15 +0000 Add a psci macro to build a version value Add PSCI_VER that takes a major and minor version and builds the value returned by the firmware. This will be used by bhyve. Sponsored by: Arm Ltd (cherry picked from commit e89be21854b3aa33efd2e06529a181343281659d) --- sys/dev/psci/psci.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/psci/psci.h b/sys/dev/psci/psci.h index c34b5d0b104f..9f95cb535336 100644 --- a/sys/dev/psci/psci.h +++ b/sys/dev/psci/psci.h @@ -101,6 +101,7 @@ psci_call(register_t a, register_t b, register_t c, register_t d) #define PSCI_VER_MAJOR(v) (((v) >> 16) & 0xFF) #define PSCI_VER_MINOR(v) ((v) & 0xFF) +#define PSCI_VER(maj, min) (((maj) << 16) | (min)) #ifdef _KERNEL enum psci_fn {