Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151233639
D50978.id157593.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
818 B
Referenced Files
None
Subscribers
None
D50978.id157593.diff
View Options
diff --git a/sys/dev/psci/smccc_errata.c b/sys/dev/psci/smccc_errata.c
--- a/sys/dev/psci/smccc_errata.c
+++ b/sys/dev/psci/smccc_errata.c
@@ -70,7 +70,8 @@
{
int32_t version;
- if (smccc_get_version() < SMCCC_MAKE_VERSION(1, 1))
+ /* Check if Errata ABI is supported */
+ if (smccc_arch_features(EM_VERSION) != SMCCC_RET_SUCCESS)
return;
/* Check we have Errata 1.0 or later */
diff --git a/sys/dev/psci/smccc_trng.c b/sys/dev/psci/smccc_trng.c
--- a/sys/dev/psci/smccc_trng.c
+++ b/sys/dev/psci/smccc_trng.c
@@ -69,8 +69,8 @@
{
int32_t version;
- /* TRNG depends on SMCCC 1.1 (per the spec) */
- if (smccc_get_version() < SMCCC_MAKE_VERSION(1, 1))
+ /* Check if TRNG is supported */
+ if (smccc_arch_features(TRNG_VERSION) != SMCCC_RET_SUCCESS)
return;
/* Check we have TRNG 1.0 or later */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 12:47 AM (7 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31060458
Default Alt Text
D50978.id157593.diff (818 B)
Attached To
Mode
D50978: dev/psci: Check for functions before calling
Attached
Detach File
Event Timeline
Log In to Comment