Simon Glass 891d9e84a7 spl: Convert spl_fit to work with sandbox
At present this casts addresses to pointers so cannot work with sandbox.
Update the code to use map_sysmem() instead.

As part of this change, the existing load_ptr is renamed to src_ptr since
it is not a pointer to load_addr. It is confusing to use a similar name
for something that is not actually related. For the alignment code,
ALIGN() is used instead of open-coded alignment. Add a comment to the line
that casts away a const.

Use a (new) load_ptr variable to access memory at address load_addr.

Signed-off-by: Simon Glass <sjg@chromium.org>
2021-03-12 09:57:31 -05:00
..
2020-11-19 09:45:49 -05:00
2020-05-18 21:19:18 -04:00
2021-02-19 23:29:47 +00:00
2020-05-18 21:19:18 -04:00
2021-01-29 10:36:48 -05:00
2021-01-06 07:57:33 -05:00
2020-10-22 09:54:53 -04:00