Searched hist:"107 e3cc0cb8723f41d680b3e569de9e2d7ca2bf9" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_ARM-atf/services/std_svc/spmd/ |
| H A D | spmd_main.c | 107e3cc0cb8723f41d680b3e569de9e2d7ca2bf9 Fri Jun 07 07:24:43 UTC 2024 Olivier Deprez <olivier.deprez@arm.com> 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
|