Skip to contentSkip to conversation

command: Fix SMC and HVC maximum number of arguments

PATCH In review Siew Chin Lim 3 participants 3 messages Jul 15, 2021 – Jul 24, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 cmd/smccc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
cmd/smccc.c +3 -3
index 0b19f6c68c..0ff9a08021 100644
@@ -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"
Signature · 1 line
2.13.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Siew Chin Lim

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.

---
 cmd/smccc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)