Files
u-boot/drivers
Simon Glass 2ea15e57a0 sandbox: efi_loader: Correct use of addresses as pointers
The cache-flush function is incorrect which causes a crash in the
remoteproc tests with arm64.

Fix both problems by using map_sysmem() to convert an address to a
pointer and map_to_sysmem() to convert a pointer to an address.

Also update the image-loader's cache-flushing logic.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 3286d223fd ("sandbox: implement invalidate_icache_all()")
Acked-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Changes in v6:
- Re-introduce

Changes in v2:
- Drop message about EFI_LOADER

 arch/sandbox/cpu/cache.c              |  8 +++++++-
 drivers/remoteproc/rproc-elf-loader.c | 18 +++++++++++-------
 lib/efi_loader/efi_image_loader.c     |  3 ++-
 3 files changed, 20 insertions(+), 9 deletions(-)
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2024-12-17 06:53:19 -07:00
..
2024-10-25 09:07:16 -03:00
2024-11-20 17:57:58 +01:00
2024-12-03 06:42:29 -07:00
2024-12-03 06:42:29 -07:00
2024-12-08 07:44:21 -07:00
2024-12-03 06:42:29 -07:00
2024-12-08 07:44:33 -07:00
2024-12-08 07:44:21 -07:00