On 2/19/20 1:25 PM, [email protected] wrote:
[...]

> +#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_ATF)
> +int invoke_smc(u32 func_id, u64 *args, int arg_len, u64 *ret_arg, int 
> ret_len)
> +{
> +     int i;
> +     struct pt_regs regs;
> +
> +     memset(&regs, 0, sizeof(regs));
> +
> +     regs.regs[0] = func_id;
> +
> +     if (args) {
> +             for (i = 0; i < arg_len; i++)
> +                     regs.regs[i + 1] = args[i];

Is this memcpy() ?

> +     }
> +
> +     smc_call(&regs);
> +
> +     if (ret_arg) {
> +             for (i = 0; i < ret_len; i++)
> +                     ret_arg[i] = regs.regs[i + 1];

memcpy() ?

Reply via email to