|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH] xen/arm: optee: provide an initialization for struct arm_smccc_res
Hi, On 21/07/2023 08:28, Nicola Vetrini wrote: On 20/07/23 17:54, Julien Grall wrote:Hi Nicola, On 20/07/2023 15:29, Nicola Vetrini wrote:The local variables with type 'struct arm_smccc_res' are initialized just after the declaration to avoid any possible read usage prior to any write usage, which would constitute a violation of MISRA C:2012 Rule 9.1. This is already prevented by suitable checks in the code, but the correctness of this approach is difficult to prove and reason about.So I looked at the implementation of arm_smccc_smc(). For arm64, it is (simplified): They are all ending up to call a fixed-argument macro (__arm_smccc_1_0_smc_7()) and then function __arm_smccc_1_0_smc(). Are you suggesting that this would still not be enough for Eclair? Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |