diff options
author | Siew Chin Lim | 2021-07-15 12:38:54 +0800 |
---|---|---|
committer | Tom Rini | 2021-07-23 18:53:46 -0400 |
commit | 8f20c480799c54f2ff6ee9ef3d735c342bca8054 (patch) | |
tree | b7696d1e3afcaca1baf9d57101501920145fea52 /cmd/smccc.c | |
parent | c48fec6e7c6ba173f42c9e8b70c001862e048220 (diff) |
command: Fix SMC and HVC maximum number of arguments
smc and hvc commands take upto 8 user input arguments, the maximum
number of arguments of the U_BOOT_CMD macro should set to 9.
Besides, fix the typo (arg7 -> arg6) in hvc command's help message.
Signed-off-by: Siew Chin Lim <elly.siew.chin.lim@intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/smccc.c')
-rw-r--r-- | cmd/smccc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/smccc.c b/cmd/smccc.c index 0b19f6c68c6..0ff9a080217 100644 --- a/cmd/smccc.c +++ b/cmd/smccc.c @@ -50,7 +50,7 @@ static int do_call(struct cmd_tbl *cmdtp, int flag, int argc, #ifdef CONFIG_CMD_SMC U_BOOT_CMD( - smc, 8, 2, do_call, + smc, 9, 2, do_call, "Issue a Secure Monitor Call", "<fid> [arg1 ... arg6] [id]\n" " - fid Function ID\n" @@ -61,9 +61,9 @@ U_BOOT_CMD( #ifdef CONFIG_CMD_HVC U_BOOT_CMD( - hvc, 8, 2, do_call, + hvc, 9, 2, do_call, "Issue a Hypervisor Call", - "<fid> [arg1...arg7] [id]\n" + "<fid> [arg1...arg6] [id]\n" " - fid Function ID\n" " - arg HVC arguments, passed to X1-X6 (default to zero)\n" " - id Session ID, passed to W7 (defaults to zero)\n" |