Skip to content

Commit 1343282

Browse files
committed
[Review] Add support for several user TA stores
Address Etienne's comments (round #3). Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
1 parent 96db951 commit 1343282

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

core/arch/arm/kernel/elf_load.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ struct user_ta_store_ops {
7171
/*
7272
* user_ta_store_ops instances are kept in a list ordered by priority.
7373
* Higher priority instances are tried first when a TA is looked up.
74+
* @priority lower value means higher priority
7475
*/
7576
SLIST_ENTRY(user_ta_store_ops) link;
76-
int priority; /* Lower value means higher priority */
77+
int priority;
7778
};
7879

7980
TEE_Result elf_load_init(const struct user_ta_store_ops *ta_store,

core/arch/arm/kernel/user_ta.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ TEE_Result tee_ta_register_ta_store(struct user_ta_store_ops *ops)
606606
SLIST_FOREACH(e, &uta_store_list, link) {
607607
/*
608608
* Do not allow equal priorities to avoid any dependency on
609-
* registration order
609+
* registration order.
610610
*/
611611
assert(e->priority != ops->priority);
612612
if (e->priority > ops->priority)

0 commit comments

Comments
 (0)