diff options
author | Simon Glass <sjg@chromium.org> | 2024-12-19 11:29:00 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-12-27 15:16:10 -0600 |
commit | 7a585b9d6a30e4122f9944b792f4da8ba5196d86 (patch) | |
tree | 757d5423171e0bbbd65d872526e2e196959df7c4 /common/spl/spl_legacy.c | |
parent | 7f67b6fa835ac885073183846f797808795a5bde (diff) |
spl: Drop use of uintptr_t
U-Boot uses ulong for addresses. It is confusing to use uintptr_t in a
few places, since it makes people wonder if the types are compatible.
Change the few occurences in SPL to use ulong
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/spl/spl_legacy.c')
-rw-r--r-- | common/spl/spl_legacy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/spl/spl_legacy.c b/common/spl/spl_legacy.c index 9252b3a3de0..b3efb3e630e 100644 --- a/common/spl/spl_legacy.c +++ b/common/spl/spl_legacy.c @@ -16,11 +16,11 @@ #define LZMA_LEN (1 << 20) -static void spl_parse_legacy_validate(uintptr_t start, uintptr_t size) +static void spl_parse_legacy_validate(ulong start, ulong size) { - uintptr_t spl_start = (uintptr_t)_start; - uintptr_t spl_end = (uintptr_t)&_image_binary_end; - uintptr_t end = start + size; + ulong spl_start = (ulong)_start; + ulong spl_end = (ulong)&_image_binary_end; + ulong end = start + size; if ((start >= spl_start && start < spl_end) || (end > spl_start && end <= spl_end) || |