diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2018-06-13 15:41:22 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2018-06-13 15:41:22 +0000 |
commit | 09d1a08ddc4e9721093fd74281b77bf281dd2d08 (patch) | |
tree | 493668971fce9fd1abe9b98105b0127726274c8a | |
parent | f651b5252702fbcaf6d2f69b51e2c6b6f9bdd4a0 (diff) |
Notes
-rw-r--r-- | sys/dev/psci/smccc.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/psci/smccc.h b/sys/dev/psci/smccc.h index ea0fa4494a26..25de6631d618 100644 --- a/sys/dev/psci/smccc.h +++ b/sys/dev/psci/smccc.h @@ -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); |