summaryrefslogtreecommitdiff
path: root/include/spl.h
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2017-01-02 11:48:31 (GMT)
committerJagan Teki <jagan@openedev.com>2017-01-04 15:37:41 (GMT)
commit11e1479b9e672661fcc2ea69f7e9cbaa6f07ecf5 (patch)
treee617708dcc4641d4556f842f4ff3df9ac94314ed /include/spl.h
parent2a6713b09b8da58572338abac276aa764bb6eadd (diff)
downloadu-boot-11e1479b9e672661fcc2ea69f7e9cbaa6f07ecf5.tar.xz
SPL: make struct spl_image 64-bit safe
Since entry_point and load_addr are addresses, they should be represented as longs to cover the whole address space and to avoid warning when compiling the SPL in 64-bit. Also adjust debug prints to add the 'l' specifier, where needed. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Alexander Graf <agraf@suse.de> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'include/spl.h')
-rw-r--r--include/spl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/spl.h b/include/spl.h
index 6e746b2..bde4437 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -23,8 +23,8 @@
struct spl_image_info {
const char *name;
u8 os;
- u32 load_addr;
- u32 entry_point;
+ ulong load_addr;
+ ulong entry_point;
u32 size;
u32 flags;
};