> On 2/19/20 1:25 PM, chee.hong....@intel.com 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(®s, 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() ? Will change this. > > > + } > > + > > + smc_call(®s); > > + > > + if (ret_arg) { > > + for (i = 0; i < ret_len; i++) > > + ret_arg[i] = regs.regs[i + 1]; > > memcpy() ? Will change this too. Thanks.
- [PATCH v2 12/21] arm: socfpga: Secure register access in... chee . hong . ang
- [PATCH v2 18/21] arm: socfpga: Bridge reset invokes SMC ... chee . hong . ang
- [PATCH v2 19/21] arm: socfpga: stratix10: Add ATF suppor... chee . hong . ang
- [PATCH v2 16/21] arm: socfpga: Secure register access in... chee . hong . ang
- [PATCH v2 17/21] arm: socfpga: stratix10: Initialize tim... chee . hong . ang
- [PATCH v2 07/21] arm: socfpga: Disable "spin-table&... chee . hong . ang
- [PATCH v2 20/21] arm: socfpga: mailbox: Add 'SYSTEM_RESE... chee . hong . ang
- [PATCH v2 21/21] configs: socfpga: Add defconfig for Agi... chee . hong . ang
- [PATCH v2 08/21] arm: socfpga: Add SMC helper function f... chee . hong . ang
- Re: [PATCH v2 08/21] arm: socfpga: Add SMC helper f... Marek Vasut
- RE: [PATCH v2 08/21] arm: socfpga: Add SMC help... Ang, Chee Hong