[U-Boot] [PATCH v2 04/11] efi_loader: Use map_sysmem() in bootefi command

Simon Glass sjg at chromium.org
Thu Jun 14 19:00:30 UTC 2018


On 14 June 2018 at 12:22, Alexander Graf <agraf at suse.de> wrote:
> The bootefi command gets a few addresses as values passed in. In sandbox,
> these values are in U-Boot address space, so we need to make sure we
> explicitly call map_sysmem() on them to be able to access them.
>
> Signed-off-by: Alexander Graf <agraf at suse.de>
> ---
>  cmd/bootefi.c | 13 ++++++++-----
>  1 file changed, 8 insertions(+), 5 deletions(-)

Looks right to me. You might consider doing the map lower down in
efi_load_pe() but since you don't ever log the address, I suppose it
is OK.

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list