From nobody Thu Mar 16 13:17:12 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 4PcnqD2f5Tz3y6Tl; Thu, 16 Mar 2023 13:17:12 +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 4PcnqD28WPz4QkZ; Thu, 16 Mar 2023 13:17:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678972632; 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=o1fRjm31u4xngXQX3/q2YLbQBCfV4mIfVOkT31PyxoA=; b=fjftXTQz84SgQdPKso3mjUS1zEMOjEkXDRJP18A3rNGENsMtN+PdSCpZSbq5oJPVUO8uFA N4r0jIltRULsYI+faF1FumLv3AEt8H3m06Qo5LF0OK9KhN6YQ4dzxRQASphVh+QbxQ899e ERfiOBTYJo3oMggeH+hRd8IGcO8WtpN7s4j+sMLnmYaxrFHSi3Ke+VKRjV72eZFBVKXC3z o81bCy/hf64f+8Ws2MWiTCGLKS8HuN0VHLXSgWrI+N5v9D+LXzW4xNLwv41tVf+HIvwk3P I/4Fpo1sr+3c6GRK22aWjvk/s7FyzOJ2xDX3OwpjkhptNuvoJllGCVXvGeNduQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678972632; 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=o1fRjm31u4xngXQX3/q2YLbQBCfV4mIfVOkT31PyxoA=; b=R5fABqs9MaB11fGcPFGuyvzl8qR3gXVLJYILR9NHNLsIqFnBOOcGVHDNRX0wZOpvBj8s1G okNi45bVwcgVGr7c5J2f1aSL7r4vCJxqWJp2LlIYjx4hK8TiTC2h2J+6nREB60lm6TPlrO GVOJ7/mclmpU0wRZVOZtJwl0Uei32UBMSi0qVN4/vt72SW16QNXxEBFaVuWr0ArK1VanIs bOhvj9+ncpqh7DgzSaiuorpAEp6ajDWLMUG02q0PM1b+ZlMnG1wAzdibwTarSqso41TZMP DtdDJi4GhiBZIrftd651wX5RhEjevNPRQuxUc9hUj3NeHFDWvVUxTiT3wjzHNA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678972632; a=rsa-sha256; cv=none; b=QIyd2nK1sq2+YVos7sPpP9GiuvXeQDWc8IxuEu8/xfEqk4Pw43G44nPBR3rkRzLpaZU4o8 W3W9FDgFpFSAN4QshzQDC1sRcov3clKtf4Jfd17yoZTNqJWGshEPm+uIKc8cQRu3ZWF6He VEI++dyFA954YWQoyLbhCOza+tnBVef2WXIPNCV5SwjwWZ6ySVy5htFxNBaC5KXgBcjMdM klwx5LDenMqVo+/IANP4i7jpivV6wy+qRF5HolELG8dKdIzAbi4hwYwDqMM9hUHBO65KJj XyMR+tZTHFovq2tzwruYJwq6cNvgPnOgixULxrzOTfdXSgRiqBRWqw+hYLfeEA== 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 4PcnqD1FJSzl17; Thu, 16 Mar 2023 13:17:12 +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 32GDHC0W078277; Thu, 16 Mar 2023 13:17:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32GDHCc5078276; Thu, 16 Mar 2023 13:17:12 GMT (envelope-from git) Date: Thu, 16 Mar 2023 13:17:12 GMT Message-Id: <202303161317.32GDHCc5078276@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: e89be21854b3 - main - 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/main X-Git-Reftype: branch X-Git-Commit: e89be21854b3aa33efd2e06529a181343281659d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=e89be21854b3aa33efd2e06529a181343281659d commit e89be21854b3aa33efd2e06529a181343281659d Author: Andrew Turner AuthorDate: 2023-03-16 12:14:01 +0000 Commit: Andrew Turner CommitDate: 2023-03-16 13:08:00 +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 --- 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 be5f55f49115..671f082bb119 100644 --- a/sys/dev/psci/psci.h +++ b/sys/dev/psci/psci.h @@ -103,6 +103,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 {