boot: Update bootmeth read_file() to support reservation

In some cases we don't have a particular address to read into so would
like one reserved. Adjust the read_file() method to support this.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-07 04:30:23 -06:00
parent cbe563ed8b
commit c545f0762b
14 changed files with 62 additions and 35 deletions

View File

@@ -47,7 +47,7 @@ static int extlinux_getfile(struct pxe_context *ctx, const char *file_path,
/* Allow up to 1GB */
*sizep = 1 << 30;
ret = bootmeth_read_file(info->dev, info->bflow, file_path, addr,
ret = bootmeth_read_file(info->dev, info->bflow, file_path, &addr, 0,
type, sizep);
if (ret)
return log_msg_ret("read", ret);