[PATCH v3 1/9] sandbox: efi_loader: Correct use of addresses as pointers

Simon Glass sjg at chromium.org
Tue Nov 12 16:09:50 CET 2024


Hi Heinrich,

On Tue, 12 Nov 2024 at 07:28, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> On 12.11.24 15:10, Simon Glass wrote:
> > The cache-flush function is incorrect which causes a crash in the
> > remoteproc tests with arm64.
>
> We should throw out all these sandbox virtual addresses where they are
> not needed.
>
> Just add the missing conversion to drivers/remoteproc/rproc-elf-loader.c.
>
> And change flush_cache() on all architectures to use void *.

No, that is not the right approach. U-Boot uses addresses throughout
(ulong), except when a pointer is strictly needed.

Regards,
Simon


More information about the U-Boot mailing list