mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 06:46:59 +00:00
spl: legacy: Fix referencing _image_binary_end
On non-arm architectures, _image_binary_end is defined as a ulong and not a
char[]. Take the address of it when accessing it, which is correct for
both.
Fixes: 1b8a1be1a1
("spl: spl_legacy: Fix spl_end address")
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
bfcf7521eb
commit
301ae61842
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
|||
static void spl_parse_legacy_validate(uintptr_t start, uintptr_t size)
|
||||
{
|
||||
uintptr_t spl_start = (uintptr_t)_start;
|
||||
uintptr_t spl_end = (uintptr_t)_image_binary_end;
|
||||
uintptr_t spl_end = (uintptr_t)&_image_binary_end;
|
||||
uintptr_t end = start + size;
|
||||
|
||||
if ((start >= spl_start && start < spl_end) ||
|
||||
|
|
Loading…
Add table
Reference in a new issue