diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2020-07-21 11:28:07 +0200 |
---|---|---|
committer | Jérôme Forissier <jerome@forissier.org> | 2020-07-22 08:36:49 +0200 |
commit | 897adff44712c3e3f9076132b2d4623ca354c22b (patch) | |
tree | d14137796e3ab7a338b5b818203c7592a31002e9 | |
parent | 9bee8f2a5af7ad5219a65d6f12ff25771f3325c0 (diff) |
core: ff-a: clear shm buffer caching after yielding call
In __thread_std_smc_entry() for the legacy SMC interface the RPC SHM
cache is cleared when a thread is done. Add the same handling to the
FF-A case.
Acked-by: Jerome Forissier <jerome@forissier.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
-rw-r--r-- | core/arch/arm/kernel/thread_spmc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/arch/arm/kernel/thread_spmc.c b/core/arch/arm/kernel/thread_spmc.c index 1edc3cdd..81edf03a 100644 --- a/core/arch/arm/kernel/thread_spmc.c +++ b/core/arch/arm/kernel/thread_spmc.c @@ -900,6 +900,8 @@ static uint32_t yielding_call_with_arg(uint64_t cookie) rv = tee_entry_std(arg, num_params); + thread_rpc_shm_cache_clear(&threads[thread_get_id()].shm_cache); + out_dec_map: mobj_dec_map(mobj); out_put_mobj: |