Searched hist:"9 c34c0c78f5e69de1c18dd644e724a848eee8e94" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/pta/ |
| H A D | system.c | 9c34c0c78f5e69de1c18dd644e724a848eee8e94 Fri Dec 11 15:24:52 UTC 2020 Balint Dobszay <balint.dobszay@arm.com> core: prefer struct user_mode_ctx in system PTA
Most functions in system PTA have struct ts_session as parameter, but only use it for getting the pointer to user_mode_ctx. This commit simplifies the code by doing the casting in a single place and passing user_mode_ctx as an argument instead.
This also eliminates casting to user_ta_ctx as an intermediate step. It is a preparation step for extracting ldelf related functions from system PTA to an ldelf specific syscall handler.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
|