[PATCH 17/26] spl: Use map_sysmem where appropriate

Simon Glass sjg at chromium.org
Thu Oct 12 05:41:27 CEST 2023


On Wed, 11 Oct 2023 at 18:56, Sean Anderson <seanga2 at gmail.com> wrote:
>
> All "physical" addresses in SPL must be converted to virtual addresses
> before access in order for sandbox to work. Add some calls to map_sysmem in
> appropriate places. We do not generally call unmap_sysmem, since we need
> the image memory to still be mapped when we jump to the image. This doesn't
> matter at the moment since unmap_sysmem is a no-op.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>
>  common/spl/spl.c               |  4 +++-
>  common/spl/spl_blk_fs.c        |  6 ++++--
>  common/spl/spl_ext.c           |  4 +++-
>  common/spl/spl_fat.c           | 11 +++++++----
>  common/spl/spl_fit.c           | 36 +++++++++++++++++++++-------------
>  common/spl/spl_imx_container.c |  4 +++-
>  common/spl/spl_legacy.c        |  6 ++++--
>  common/spl/spl_mmc.c           |  4 +++-
>  common/spl/spl_net.c           | 10 +++++++---
>  common/spl/spl_nor.c           |  5 +++--
>  common/spl/spl_spi.c           | 14 +++++++++----
>  11 files changed, 69 insertions(+), 35 deletions(-)

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


More information about the U-Boot mailing list