summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>2015-02-25 13:09:20 +0300
committerTom Rini <trini@konsulko.com>2015-03-05 20:50:28 -0500
commitbc55c07a2bc8435d427707d96b3b08fe1fa00198 (patch)
tree2afd689bd00017617bac80e354ee240911ea485e
parentff6c032ea89ff1fdd97bfcaeadbc45726008a5ff (diff)
lib/asm-offsets - make GD_RELOCADDR, GD_RELOC_OFF & GD_START_ADDR_SP available for all architectures
GD_RELOCADDR, GD_RELOC_OFF & GD_START_ADDR_SP are generic members of global data structure so why don't we allow architectures other than ARM to use it. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@ti.com> Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r--lib/asm-offsets.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c
index 129bc3e2aff..221ebbf1771 100644
--- a/lib/asm-offsets.c
+++ b/lib/asm-offsets.c
@@ -32,15 +32,11 @@ int main(void)
DEFINE(GD_MALLOC_BASE, offsetof(struct global_data, malloc_base));
#endif
-#if defined(CONFIG_ARM)
-
DEFINE(GD_RELOCADDR, offsetof(struct global_data, relocaddr));
DEFINE(GD_RELOC_OFF, offsetof(struct global_data, reloc_off));
DEFINE(GD_START_ADDR_SP, offsetof(struct global_data, start_addr_sp));
-#endif
-
return 0;
}