svn commit: r335438 - head/sys/dev/psci

Andrew Turner andrew at FreeBSD.org
Wed Jun 20 10:02:51 UTC 2018


Author: andrew
Date: Wed Jun 20 10:02:50 2018
New Revision: 335438
URL: https://svnweb.freebsd.org/changeset/base/335438

Log:
  Fix the SMCCC signatures, they are all 32-bit calls. This fixes SMCCC
  version detection.
  
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/dev/psci/smccc.h

Modified: head/sys/dev/psci/smccc.h
==============================================================================
--- head/sys/dev/psci/smccc.h	Wed Jun 20 08:34:29 2018	(r335437)
+++ head/sys/dev/psci/smccc.h	Wed Jun 20 10:02:50 2018	(r335438)
@@ -54,11 +54,11 @@
  * These are documented in the document ARM DEN 0070A.
  */
 #define	SMCCC_VERSION							\
-    SMCCC_FUNC_ID(SMCCC_FAST_CALL, SMCCC_64BIT_CALL, 0, 0)
+    SMCCC_FUNC_ID(SMCCC_FAST_CALL, SMCCC_32BIT_CALL, 0, 0)
 #define	SMCCC_ARCH_FEATURES						\
-    SMCCC_FUNC_ID(SMCCC_FAST_CALL, SMCCC_64BIT_CALL, 0, 1)
+    SMCCC_FUNC_ID(SMCCC_FAST_CALL, SMCCC_32BIT_CALL, 0, 1)
 #define	SMCCC_ARCH_WORKAROUND_1						\
-    SMCCC_FUNC_ID(SMCCC_FAST_CALL, SMCCC_64BIT_CALL, 0, 0x8000)
+    SMCCC_FUNC_ID(SMCCC_FAST_CALL, SMCCC_32BIT_CALL, 0, 0x8000)
 
 /* The return values from ARM DEN 0070A. */
 #define	SMCCC_RET_SUCCESS		0


More information about the svn-src-head mailing list