summaryrefslogtreecommitdiff
path: root/cmd/pxe.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-10-14 21:47:58 +0300
committerTom Rini <trini@konsulko.com>2021-11-12 03:02:18 +0300
commit4ad5d51edb6525402b371cc8f8a3bee1b6a42414 (patch)
tree8d7cf5b3c60dbd9bc53b3ec59d6874e5c354b381 /cmd/pxe.c
parentb1ead6b9087f1f96cb117d72e3e5cf0d5fb708f5 (diff)
downloadu-boot-4ad5d51edb6525402b371cc8f8a3bee1b6a42414.tar.xz
pxe: Add a userdata field to the context
Allow the caller to provide some info which is passed back to the readfile() method. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Artem Lapkin <email2tema@gmail.com> Tested-by: Artem Lapkin <email2tema@gmail.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'cmd/pxe.c')
-rw-r--r--cmd/pxe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/pxe.c b/cmd/pxe.c
index 70dbde3a63..d79b9b733d 100644
--- a/cmd/pxe.c
+++ b/cmd/pxe.c
@@ -121,7 +121,7 @@ do_pxe_get(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
struct pxe_context ctx;
int err, i = 0;
- pxe_setup_ctx(&ctx, cmdtp, do_get_tftp);
+ pxe_setup_ctx(&ctx, cmdtp, do_get_tftp, NULL);
if (argc != 1)
return CMD_RET_USAGE;
@@ -175,7 +175,7 @@ do_pxe_boot(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
char *pxefile_addr_str;
struct pxe_context ctx;
- pxe_setup_ctx(&ctx, cmdtp, do_get_tftp);
+ pxe_setup_ctx(&ctx, cmdtp, do_get_tftp, NULL);
if (argc == 1) {
pxefile_addr_str = from_env("pxefile_addr_r");