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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user