diff options
author | Simon Glass <sjg@chromium.org> | 2024-12-07 10:24:05 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-12-12 16:35:24 -0600 |
commit | 290d0cf0c06e128a7f7d948fd54f0b22ee95aa62 (patch) | |
tree | fd49b3caac9384e1a9bc50ae605e771cf68a52fe /common/spl/spl_legacy.c | |
parent | 1c5c5a3dcca375dd972aa8942f9b079f6111e6fc (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) || |