Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e8b05987 authored by Anmolpreet Kaur's avatar Anmolpreet Kaur
Browse files

smcinvoke: Update the correct parameters and result from qseecom



This change takes care of two things:

1.smcinvoke expects result in scm call resp.ret[1] and type in ret[0],
while qseecom expects result in ret[0] and type in ret[1]. To simplify
API interface and code changes in smcinvoke, here internally switch
result and resp_type.

2.In case when a listener request comes from secure side to smcinvoke,
we invoke qseecom for processing of listener request. It maybe the case
that after this request, secure side may request for another callback
request. In this flow, we need to update the correct result from qseecom
as 0 so as to indicate that qseecom's job was successfully finished and now
smcinvoke has to take care of the callback request further. This condition
is again checked at smcinvoke side and decision to marshal out is taken
accordingly.

Change-Id: I5d6be3292ef11ac2d84fd287bb8f1e9f91dc1b56
Signed-off-by: default avatarAnmolpreet Kaur <anmolpre@codeaurora.org>
parent 112597fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment