Skip to content

Commit eae92bd

Browse files
committed
tee: optee: GET_OS_REVISION: document a2 as a build identifier
In the OPTEE_SMC_CALL_GET_OS_REVISION request, the previously reserved parameter a2 is now documented as being an optional build identifier (such as an SCM revision or commit ID, for instance). A new structure optee_smc_call_get_os_revision_result is introduced to be used when querying the secure OS version, instead of re-using the struct defined for OPTEE_SMC_CALLS_REVISION. Signed-off-by: Jerome Forissier <[email protected]>
1 parent 6e954e2 commit eae92bd

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

drivers/tee/optee/optee_smc.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,20 @@ struct optee_smc_calls_revision_result {
112112
* Trusted OS, not of the API.
113113
*
114114
* Returns revision in a0-1 in the same way as OPTEE_SMC_CALLS_REVISION
115-
* described above.
115+
* described above. May optionally return a 32-bit build identifier in a2,
116+
* with zero meaning unspecified.
116117
*/
117118
#define OPTEE_SMC_FUNCID_GET_OS_REVISION OPTEE_MSG_FUNCID_GET_OS_REVISION
118119
#define OPTEE_SMC_CALL_GET_OS_REVISION \
119120
OPTEE_SMC_FAST_CALL_VAL(OPTEE_SMC_FUNCID_GET_OS_REVISION)
120121

122+
struct optee_smc_call_get_os_revision_result {
123+
unsigned long major;
124+
unsigned long minor;
125+
unsigned long build_id;
126+
unsigned long reserved1;
127+
};
128+
121129
/*
122130
* Call with struct optee_msg_arg as argument
123131
*

0 commit comments

Comments
 (0)