git: 4401550f74ba - stable/13 - Add a psci macro to build a version value
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 25 Sep 2023 11:00:42 UTC
The branch stable/13 has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=4401550f74ba50f34e9f443307d170c6b05ba62f
commit 4401550f74ba50f34e9f443307d170c6b05ba62f
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2023-03-16 12:14:01 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
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 {