]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: Use map_sysmem where appropriate
authorSean Anderson <seanga2@gmail.com>
Sat, 14 Oct 2023 20:47:55 +0000 (16:47 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 18 Oct 2023 00:50:52 +0000 (20:50 -0400)
commitb02c4e941c7fed520f05cc956b9263bc934a9828
tree8e37dab03b30112d99d4fe17f76ae6a313688154
parent93caa3efe25bb9d3e6265aa467dc5b6a2201819b
spl: Use map_sysmem where appropriate

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@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/spl/spl.c
common/spl/spl_blk_fs.c
common/spl/spl_ext.c
common/spl/spl_fat.c
common/spl/spl_fit.c
common/spl/spl_imx_container.c
common/spl/spl_legacy.c
common/spl/spl_mmc.c
common/spl/spl_net.c
common/spl/spl_nor.c
common/spl/spl_spi.c