Fix the SMCCC signatures, they are all 32-bit calls. This fixes SMCCC

version detection.

Sponsored by:	DARPA, AFRL
This commit is contained in:
andrew 2018-06-20 10:02:50 +00:00
parent 49043c2660
commit 021ddd901b

View File

@ -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