commit | aed30314472ea240be63c12478dafbf56656aa45 | [log] [tgz] |
---|---|---|
author | Olivier Deprez <olivier.deprez@arm.com> | Fri Jun 07 09:24:43 2024 +0200 |
committer | Olivier Deprez <olivier.deprez@arm.com> | Tue Jul 09 15:23:32 2024 +0200 |
tree | 7fbc1204a9244687854af1ce71b825c2caa13421 | |
parent | 13a4a07d5617eb0a75e2b6b4042546d7483b5af3 [diff] |
refactor(spmd): call cm_get_context once As observed by tracing instruction execution the SMC_RET18 macro in spmd_smc_switch_state calls cm_get_context, however the compiler expands it to multiple individual non-inlined calls to this same function. Store the result of cm_get_context into a local variable and use it in the macro such that this function is only called once. Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: Ib4fa63aced2f07c67c057f54fef3780c85e91df7