From 72e1fcacff273f1aa5faa02a75ab5a737f6c698f Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sat, 15 Aug 2020 23:10:22 +0200 Subject: efi_loader: document parameters of do_bootefi_exec() Add the missing description of the load_options parameter. Signed-off-by: Heinrich Schuchardt --- cmd/bootefi.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd') diff --git a/cmd/bootefi.c b/cmd/bootefi.c index fbfed54e857..06563d28ca9 100644 --- a/cmd/bootefi.c +++ b/cmd/bootefi.c @@ -304,7 +304,11 @@ efi_status_t efi_install_fdt(void *fdt) /** * do_bootefi_exec() - execute EFI binary * + * The image indicated by @handle is started. When it returns the allocated + * memory for the @load_options is freed. + * * @handle: handle of loaded image + * @load_options: load options * Return: status code * * Load the EFI binary into a newly assigned memory unwinding the relocation -- cgit v1.2.3 From 2b3fbcb59f4174e455a6285eaddf1426ed3e76c5 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Mon, 24 Aug 2020 08:27:49 +0200 Subject: efi_loader: use ':' as separator for setenv -i setenv -e -i
, can be used to set a UEFI variable from memory. For separating an address and a size we use ':' in most commands. Let's do the same for setenv -e -i. Signed-off-by: Heinrich Schuchardt --- cmd/nvedit_efi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/nvedit_efi.c b/cmd/nvedit_efi.c index 8e31f43e1f9..094c0e80987 100644 --- a/cmd/nvedit_efi.c +++ b/cmd/nvedit_efi.c @@ -473,7 +473,7 @@ int do_env_set_efi(struct cmd_tbl *cmdtp, int flag, int argc, argc--; argv++; addr = simple_strtoul(argv[0], &ep, 16); - if (*ep != ',') + if (*ep != ':') return CMD_RET_USAGE; /* 0 should be allowed for delete */ -- cgit v1.2.3