Add the SMCCC return codes from ARM DEN 0070A.

While here add a comment with the document the function IDs come from.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Andrew Turner 2018-06-13 15:41:22 +00:00
parent f651b52527
commit 09d1a08ddc

View File

@ -49,6 +49,10 @@
#define SMCCC_32BIT_CALL 0
#define SMCCC_64BIT_CALL 1
/*
* Arm Architecture Calls.
* These are documented in the document ARM DEN 0070A.
*/
#define SMCCC_VERSION \
SMCCC_FUNC_ID(SMCCC_FAST_CALL, SMCCC_64BIT_CALL, 0, 0)
#define SMCCC_ARCH_FEATURES \
@ -56,6 +60,11 @@
#define SMCCC_ARCH_WORKAROUND_1 \
SMCCC_FUNC_ID(SMCCC_FAST_CALL, SMCCC_64BIT_CALL, 0, 0x8000)
/* The return values from ARM DEN 0070A. */
#define SMCCC_RET_SUCCESS 0
#define SMCCC_RET_NOT_SUPPORTED -1
#define SMCCC_RET_NOT_REQUIRED -2
int32_t smccc_arch_features(uint32_t);
int smccc_arch_workaround_1(void);