Skip to content

Commit

Permalink
core: add TEE_LOGIN_REE_KERNEL login method
Browse files Browse the repository at this point in the history
Add private login method for REE kernel clients to invoke TAs. It allows
a TA to distinguish among normal world clients whether its a REE kernel
client or a REE user-space client.

Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Reviewed-by: Jerome Forissier <jerome@forissier.org>
  • Loading branch information
b49020 authored and jforissier committed Mar 24, 2020
1 parent 740676d commit 78f462f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/arch/arm/tee/entry_std.c
Expand Up @@ -278,6 +278,7 @@ static TEE_Result get_open_session_meta(size_t num_params,
clnt_id->login = params[1].u.value.c;
switch (clnt_id->login) {
case TEE_LOGIN_PUBLIC:
case TEE_LOGIN_REE_KERNEL:
memset(&clnt_id->uuid, 0, sizeof(clnt_id->uuid));
break;
case TEE_LOGIN_USER:
Expand Down
7 changes: 7 additions & 0 deletions lib/libutee/include/tee_api_defines_extensions.h
Expand Up @@ -89,4 +89,11 @@
#define TEE_MEMORY_ACCESS_NONSECURE 0x10000000
#define TEE_MEMORY_ACCESS_SECURE 0x20000000

/*
* Implementation-specific login types
*/

/* Private login method for REE kernel clients */
#define TEE_LOGIN_REE_KERNEL 0x80000000

#endif /* TEE_API_DEFINES_EXTENSIONS_H */

0 comments on commit 78f462f

Please sign in to comment.